mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-02 21:24:15 -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
|
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