diff options
| author | cvium <clausvium@gmail.com> | 2021-04-13 20:12:50 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-04-13 20:12:50 +0200 |
| commit | d44b2e2ee5ecb06016b8b88eb03fc6dc28a04ee9 (patch) | |
| tree | 94a292f40343996a081324a0b9b21c3cbb5b1c08 /Emby.Server.Implementations/Collections | |
| parent | 723b6abcb392b1a65e46db91aa35f7e13de0c2a8 (diff) | |
fixes
Diffstat (limited to 'Emby.Server.Implementations/Collections')
| -rw-r--r-- | Emby.Server.Implementations/Collections/CollectionManager.cs | 9 |
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; } } } |
