resolved issue with setting up mixed library

This commit is contained in:
Luke Pulverenti
2015-10-18 13:35:36 -04:00
parent 5ecf69503b
commit d74ded0fd6
4 changed files with 41 additions and 14 deletions

View File

@@ -1215,6 +1215,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv
{
cancellationToken.ThrowIfCancellationRequested();
if (itemId == Guid.Empty)
{
// Somehow some invalid data got into the db. It probably predates the boundary checking
continue;
}
if (!currentIdList.Contains(itemId))
{
var item = _libraryManager.GetItemById(itemId);