aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/Collections/CollectionManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Collections/CollectionManager.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs b/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs
index adcf3edba..a69f9e94b 100644
--- a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs
+++ b/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs
@@ -10,6 +10,7 @@ using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
+using MoreLinq;
namespace MediaBrowser.Server.Implementations.Collections
{
@@ -255,7 +256,10 @@ namespace MediaBrowser.Server.Implementations.Collections
}
}
- return list.Except(itemsToCollapse.Cast<BaseItem>()).Concat(boxsets).Distinct();
+ return list
+ .Except(itemsToCollapse.Cast<BaseItem>())
+ .Concat(boxsets)
+ .DistinctBy(i => i.Id);
}
}
}