mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #5324 from danieladov/master
Fix duplicated movies when group movies into collections is enabled
This commit is contained in:
commit
bd70f56218
@ -343,11 +343,24 @@ namespace Emby.Server.Implementations.Collections
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
var alreadyInResults = false;
|
||||||
|
foreach (var child in item.GetMediaSources(true))
|
||||||
|
{
|
||||||
|
if (Guid.TryParse(child.Id, out var id) && results.ContainsKey(id))
|
||||||
|
{
|
||||||
|
alreadyInResults = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!alreadyInResults)
|
||||||
{
|
{
|
||||||
results[item.Id] = item;
|
results[item.Id] = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return results.Values;
|
return results.Values;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user