mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Fix duplicated movies when group movies into collections is enabled
This commit is contained in:
@@ -344,7 +344,20 @@ namespace Emby.Server.Implementations.Collections
|
||||
}
|
||||
else
|
||||
{
|
||||
results[item.Id] = item;
|
||||
var alreadyInResults = false;
|
||||
foreach (var child in item.GetMediaSources(true))
|
||||
{
|
||||
|
||||
if (results.ContainsKey(Guid.Parse(child.Id)))
|
||||
{
|
||||
alreadyInResults = true;
|
||||
}
|
||||
}
|
||||
if (!alreadyInResults)
|
||||
{
|
||||
|
||||
results[item.Id] = item;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user