mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
update server sync
This commit is contained in:
@@ -35,7 +35,14 @@ namespace MediaBrowser.Model.ApiClient
|
||||
|
||||
public static Task<SyncDialogOptions> GetSyncOptions(this IApiClient apiClient, SyncJob job)
|
||||
{
|
||||
return apiClient.GetSyncOptions(job.RequestedItemIds, job.UserId, job.ParentId, job.Category);
|
||||
return apiClient.GetSyncOptions(new SyncJobRequest
|
||||
{
|
||||
Category = job.Category,
|
||||
ItemIds = job.RequestedItemIds,
|
||||
ParentId = job.ParentId,
|
||||
TargetId = job.TargetId,
|
||||
UserId = job.UserId
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1519,11 +1519,8 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <summary>
|
||||
/// Gets the synchronize options.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user identifier.</param>
|
||||
/// <param name="itemIds">The item ids.</param>
|
||||
/// <param name="parentId">The parent identifier.</param>
|
||||
/// <param name="category">The category.</param>
|
||||
/// <param name="jobInfo">The job information.</param>
|
||||
/// <returns>Task<SyncOptions>.</returns>
|
||||
Task<SyncDialogOptions> GetSyncOptions(IEnumerable<string> itemIds, string userId, string parentId = null, SyncCategory? category = null);
|
||||
Task<SyncDialogOptions> GetSyncOptions(SyncJobRequest jobInfo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user