Skip to content

The Free Software Media System - Server Backend & API

Merge branch 'master' of https://github.com/danieladov/jellyfin

Mister Rajoy8883aa4a375d
diff --cc Emby.Server.Implementations/Collections/CollectionManager.cs
index b5d95134bd,151e869487..db532ce5b4
--- a/Emby.Server.Implementations/Collections/CollectionManager.cs
+++ b/Emby.Server.Implementations/Collections/CollectionManager.cs
@@@ -347,17 -347,13 +347,15 @@@ namespace Emby.Server.Implementations.C
var alreadyInResults = false;
foreach (var child in item.GetMediaSources(true))
{
-
- if (results.ContainsKey(Guid.Parse(child.Id)))
+ if (Guid.TryParse(child.Id, out var id) && results.ContainsKey(id))
{
alreadyInResults = true;
+ break;
}
}
+
if (!alreadyInResults)
{
-
results[item.Id] = item;
}
}