diff options
Diffstat (limited to 'MediaBrowser.Controller/Entities/IndexFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/IndexFolder.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/IndexFolder.cs b/MediaBrowser.Controller/Entities/IndexFolder.cs index bbfb01fc6..165bab632 100644 --- a/MediaBrowser.Controller/Entities/IndexFolder.cs +++ b/MediaBrowser.Controller/Entities/IndexFolder.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Common.Extensions; +using System; +using MediaBrowser.Common.Extensions; using MediaBrowser.Model.Entities; using System.Collections.Concurrent; using System.Collections.Generic; @@ -109,7 +110,7 @@ namespace MediaBrowser.Controller.Entities /// Override to return the children defined to us when we were created /// </summary> /// <value>The actual children.</value> - protected override ConcurrentBag<BaseItem> LoadChildren() + protected override ConcurrentDictionary<Guid,BaseItem> LoadChildren() { var originalChildSource = ChildSource.ToList(); @@ -134,7 +135,7 @@ namespace MediaBrowser.Controller.Entities // Now - since we built the index grouping from the bottom up - we now need to properly set Parents from the top down SetParents(this, kids.OfType<IndexFolder>()); - return new ConcurrentBag<BaseItem>(kids); + return new ConcurrentDictionary<Guid,BaseItem>(kids.ToDictionary(i => i.Id)); } /// <summary> |
