mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
create sync job items pages
This commit is contained in:
@@ -81,6 +81,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
{
|
||||
Id = Guid.NewGuid().ToString("N"),
|
||||
ItemId = itemId,
|
||||
ItemName = GetSyncJobItemName(item),
|
||||
JobId = job.Id,
|
||||
TargetId = job.TargetId,
|
||||
DateCreated = DateTime.UtcNow
|
||||
@@ -98,6 +99,11 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
await UpdateJobStatus(job, jobItems).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private string GetSyncJobItemName(BaseItem item)
|
||||
{
|
||||
return item.Name;
|
||||
}
|
||||
|
||||
public Task UpdateJobStatus(string id)
|
||||
{
|
||||
var job = _syncRepo.GetJob(id);
|
||||
|
||||
Reference in New Issue
Block a user