aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Collections/CollectionManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Collections/CollectionManager.cs')
-rw-r--r--Emby.Server.Implementations/Collections/CollectionManager.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Collections/CollectionManager.cs b/Emby.Server.Implementations/Collections/CollectionManager.cs
index 6dbbd5530..81758d9a7 100644
--- a/Emby.Server.Implementations/Collections/CollectionManager.cs
+++ b/Emby.Server.Implementations/Collections/CollectionManager.cs
@@ -341,12 +341,7 @@ namespace Emby.Server.Implementations.Collections
itemIsInBoxSet = true;
- if (results.ContainsKey(boxSet.Id))
- {
- continue;
- }
-
- results[boxSet.Id] = boxSet;
+ results.TryAdd(boxSet.Id, boxSet);
}
// skip any item that is in a box set
@@ -373,7 +368,7 @@ namespace Emby.Server.Implementations.Collections
if (!alreadyInResults)
{
- results[item.Id] = item;
+ results[itemId] = item;
}
}
}