aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-27 08:24:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-27 08:24:28 -0400
commitc643dd072e117aec2397e695c650e8a58be2fc6c (patch)
treeea1701ef7408fb30c816d6495ba85c200f4bacdb /MediaBrowser.Api/UserLibrary/UserLibraryService.cs
parentbdc90f02f2aea7fabc22413912752db56435bfd3 (diff)
added more direct querying to folder
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/UserLibraryService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/UserLibraryService.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
index 960ca10c6..7db15281f 100644
--- a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
+++ b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs
@@ -451,9 +451,7 @@ namespace MediaBrowser.Api.UserLibrary
if (series != null)
{
var dtos = series
- .RecursiveChildren
- .OfType<Episode>()
- .Where(i => i.ParentIndexNumber.HasValue && i.ParentIndexNumber.Value == 0)
+ .GetRecursiveChildren(i => i is Episode && i.ParentIndexNumber.HasValue && i.ParentIndexNumber.Value == 0)
.OrderBy(i =>
{
if (i.PremiereDate.HasValue)