fixed year selection issue

This commit is contained in:
Luke Pulverenti
2014-01-16 12:56:50 -05:00
parent b469012304
commit 266498f92c
2 changed files with 3 additions and 2 deletions

View File

@@ -110,7 +110,8 @@ namespace MediaBrowser.Api.UserLibrary
var itemsList = items.Where(i => i.ProductionYear != null).ToList();
return itemsList
.Select(i => i.ProductionYear.Value)
.Select(i => i.ProductionYear ?? 0)
.Where(i => i > 0)
.Distinct()
.Select(year => LibraryManager.GetYear(year));
}