aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-21 16:09:10 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-08-21 16:09:10 -0400
commit96328b61a11eaf04ccd7869332156685e0fabaf0 (patch)
tree9133f10b46d4c13189c5f495f97d8db97c2db298
parent89a31e23ec84dfaa3be090eeca125d353f48b22e (diff)
optimize collection folder
-rw-r--r--MediaBrowser.Controller/Entities/CollectionFolder.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs
index 76abbe627..9682ea8c2 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<LinkedChild>();
}
- return LibraryManager.RootFolder.RecursiveChildren
+ return LibraryManager.RootFolder.Children
.OfType<Folder>()
.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<Folder>()
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
.SelectMany(c => c.Children);