mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-31 23:42:09 +01:00
update sync progress display
This commit is contained in:
@@ -244,7 +244,15 @@ namespace MediaBrowser.Api.Sync
|
||||
var task = _syncManager.ReportSyncJobItemTransferBeginning(request.Id);
|
||||
Task.WaitAll(task);
|
||||
|
||||
return ToStaticFileResult(jobItem.OutputPath);
|
||||
return ResultFactory.GetStaticFileResult(Request, new StaticFileResultOptions
|
||||
{
|
||||
Path = jobItem.OutputPath,
|
||||
OnError = () =>
|
||||
{
|
||||
var failedTask = _syncManager.ReportSyncJobItemTransferFailed(request.Id);
|
||||
Task.WaitAll(failedTask);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public object Get(GetSyncDialogOptions request)
|
||||
|
||||
Reference in New Issue
Block a user