The Free Software Media System - Server Backend & API
Merge pull request #6089 from BaronGreenback/IsRoot_fix
Claus Vium66659b084276
diff --cc MediaBrowser.Controller/Entities/UserRootFolder.csindex f3bf4749d2,120cb8d9b0..c07fb40b3e--- a/MediaBrowser.Controller/Entities/UserRootFolder.cs+++ b/MediaBrowser.Controller/Entities/UserRootFolder.cs@@@ -21,29 -21,17 +21,37 @@@ namespace MediaBrowser.Controller.Entit/// </summary>public class UserRootFolder : Folder{- private List<Guid> _childrenIds = null;private readonly object _childIdsLock = new object();+ private List<Guid> _childrenIds = null;++ [JsonIgnore]+ public override bool SupportsInheritedParentImages => false;++ [JsonIgnore]+ public override bool SupportsPlayedStatus => false;++ [JsonIgnore]+ protected override bool SupportsShortcutChildren => true;++ [JsonIgnore]+ public override bool IsPreSorted => true;++ private void ClearCache()+ {+ lock (_childIdsLock)+ {+ _childrenIds = null;+ }+ }+ /// <summary>+ /// Initializes a new instance of the <see cref="UserRootFolder"/> class.+ /// </summary>+ public UserRootFolder()+ {+ IsRoot = true;+ }+protected override List<BaseItem> LoadChildren(){lock (_childIdsLock)