diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-04 11:22:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-04 11:22:03 -0400 |
| commit | fb98b0c8e0e1b22f006493bd4311c2407cc438db (patch) | |
| tree | b9379faac23dacbe78fe766a29ffc4a62d818e82 /MediaBrowser.Controller/Entities/Folder.cs | |
| parent | 16b9d26ab5e52c3c72dd24f17587ca4775ff79dd (diff) | |
updated nuget
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 95a68c009..bcf62115c 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -6,6 +6,7 @@ using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Localization; using MediaBrowser.Controller.Resolvers; using MediaBrowser.Model.Entities; +using MoreLinq; using System; using System.Collections; using System.Collections.Concurrent; @@ -1009,10 +1010,10 @@ namespace MediaBrowser.Controller.Entities continue; } - hasLinkedChildren = true; - if (child.IsVisible(user)) { + hasLinkedChildren = true; + list.Add(child); } } @@ -1058,7 +1059,7 @@ namespace MediaBrowser.Controller.Entities if (includeLinkedChildren && hasLinkedChildren) { - list = list.Distinct().ToList(); + list = list.DistinctBy(i => i.Id).ToList(); } return list; |
