mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix duplicated movies when group movies into collections is enabled
This commit is contained in:
parent
0fde0a82e4
commit
18cd634ec8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user