diff options
Diffstat (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/CollectionFolder.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs index bc50ce618..f032d9318 100644 --- a/MediaBrowser.Controller/Entities/CollectionFolder.cs +++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs @@ -65,6 +65,8 @@ namespace MediaBrowser.Controller.Entities IndexCache.Clear(); } + ResetDynamicChildren(); + return NullTaskResult; } @@ -99,7 +101,8 @@ namespace MediaBrowser.Controller.Entities return LibraryManager.RootFolder.Children .OfType<Folder>() .Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path)) - .SelectMany(c => c.LinkedChildren).ToList(); + .SelectMany(c => c.LinkedChildren) + .ToList(); } private IEnumerable<BaseItem> _actualChildren; @@ -131,7 +134,8 @@ namespace MediaBrowser.Controller.Entities LibraryManager.RootFolder.Children .OfType<Folder>() .Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path)) - .SelectMany(c => c.Children); + .SelectMany(c => c.Children) + .ToList(); } public void ResetDynamicChildren() |
