update sync cancellation
This commit is contained in:
parent
0fd7e89039
commit
28bbe32d1d
|
@ -1030,6 +1030,18 @@ namespace Emby.Server.Implementations.Sync
|
|||
{
|
||||
await CancelJobItem(jobItem.Id).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var syncJobResult = await GetJobs(new SyncJobQuery
|
||||
{
|
||||
ItemId = item,
|
||||
TargetId = targetId
|
||||
|
||||
}).ConfigureAwait(false);
|
||||
|
||||
foreach (var job in syncJobResult.Items)
|
||||
{
|
||||
await CancelJob(job.Id).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -360,6 +360,11 @@ namespace Emby.Server.Implementations.Sync
|
|||
whereClauses.Add("UserId=?");
|
||||
paramList.Add(query.UserId);
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(query.ItemId))
|
||||
{
|
||||
whereClauses.Add("ItemIds like ?");
|
||||
paramList.Add("%" + query.ItemId + "%");
|
||||
}
|
||||
if (query.SyncNewContent.HasValue)
|
||||
{
|
||||
whereClauses.Add("SyncNewContent=?");
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace MediaBrowser.Model.Sync
|
|||
/// <value>The user identifier.</value>
|
||||
public string UserId { get; set; }
|
||||
public string ExcludeTargetIds { get; set; }
|
||||
public string ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the status.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user