aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/YearsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
commit740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc (patch)
tree61462d05ce44c1bb17f48e557b02e14bb480816d /MediaBrowser.Api/UserLibrary/YearsService.cs
parentd078edfb96fe2dcfebdc34e9189f85b0487ac242 (diff)
de-normalize item by name data. create counts during library scan for fast access.
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/YearsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/YearsService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/YearsService.cs b/MediaBrowser.Api/UserLibrary/YearsService.cs
index b153b6e10..642129564 100644
--- a/MediaBrowser.Api/UserLibrary/YearsService.cs
+++ b/MediaBrowser.Api/UserLibrary/YearsService.cs
@@ -118,7 +118,7 @@ namespace MediaBrowser.Api.UserLibrary
return itemsList
.Select(i => i.ProductionYear.Value)
.Distinct()
- .Select(year => new IbnStub<Year>(year.ToString(UsCulture), () => itemsList.Where(i => i.ProductionYear.HasValue && i.ProductionYear.Value == year), GetEntity));
+ .Select(year => new IbnStub<Year>(year.ToString(UsCulture), GetEntity));
}
/// <summary>