mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-26 03:04:53 +00:00
fix album save in metadata manager
This commit is contained in:
parent
deb6e5a2ee
commit
3e442e0df4
5 changed files with 46 additions and 15 deletions
|
|
@ -458,6 +458,13 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||
|
||||
var syncOptions = _config.GetSyncOptions();
|
||||
var user = _userManager.GetUserById(job.UserId);
|
||||
if (user == null)
|
||||
{
|
||||
jobItem.Status = SyncJobItemStatus.Failed;
|
||||
_logger.Error("User not found. Cannot complete the sync job.");
|
||||
await _syncManager.UpdateSyncJobItemInternal(jobItem).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
|
||||
var video = item as Video;
|
||||
if (video != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue