rework detail page a little

This commit is contained in:
Luke Pulverenti 2015-02-02 23:54:52 -05:00
parent be070a0bfe
commit 75771927d6

View File

@ -501,6 +501,11 @@ namespace MediaBrowser.Server.Implementations.Sync
var libraryItem = _libraryManager.GetItemById(jobItem.ItemId);
if (libraryItem == null)
{
return null;
}
var syncedItem = new SyncedItem
{
SyncJobId = jobItem.JobId,
@ -563,7 +568,9 @@ namespace MediaBrowser.Server.Implementations.Sync
Statuses = new List<SyncJobItemStatus> { SyncJobItemStatus.Transferring }
});
return jobItemResult.Items.Select(GetJobItemInfo)
return jobItemResult.Items
.Select(GetJobItemInfo)
.Where(i => i != null)
.ToList();
}