From 96328b61a11eaf04ccd7869332156685e0fabaf0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 21 Aug 2013 16:09:10 -0400 Subject: [PATCH] optimize collection folder --- MediaBrowser.Controller/Entities/CollectionFolder.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs index 76abbe627b..9682ea8c21 100644 --- a/MediaBrowser.Controller/Entities/CollectionFolder.cs +++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs @@ -1,5 +1,4 @@ -using MediaBrowser.Controller.Library; -using System; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; @@ -87,7 +86,7 @@ namespace MediaBrowser.Controller.Entities return new List(); } - return LibraryManager.RootFolder.RecursiveChildren + return LibraryManager.RootFolder.Children .OfType() .Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path)) .SelectMany(c => c.LinkedChildren).ToList(); @@ -120,7 +119,7 @@ namespace MediaBrowser.Controller.Entities } var ourChildren = - LibraryManager.RootFolder.RecursiveChildren + LibraryManager.RootFolder.Children .OfType() .Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path)) .SelectMany(c => c.Children);