fix album save in metadata manager

This commit is contained in:
Luke Pulverenti
2015-05-18 18:23:03 -04:00
parent deb6e5a2ee
commit 3e442e0df4
5 changed files with 46 additions and 15 deletions

View File

@@ -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)