mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
some initial work on cloud sync
This commit is contained in:
@@ -211,6 +211,9 @@ namespace MediaBrowser.Api.Sync
|
||||
throw new ArgumentException("The job item is not yet ready for transfer.");
|
||||
}
|
||||
|
||||
var task = _syncManager.ReportSyncJobItemTransferBeginning(request.Id);
|
||||
Task.WaitAll(task);
|
||||
|
||||
return ToStaticFileResult(jobItem.OutputPath);
|
||||
}
|
||||
|
||||
@@ -235,7 +238,7 @@ namespace MediaBrowser.Api.Sync
|
||||
}
|
||||
};
|
||||
|
||||
var items = request.ItemIds.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries)
|
||||
var items = request.ItemIds.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(_libraryManager.GetItemById)
|
||||
.Where(i => i != null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user