Merge pull request #5324 from danieladov/master

Fix duplicated movies when group movies into collections is enabled
pull/5416/head^2
Claus Vium 3 years ago committed by GitHub
commit bd70f56218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 (Guid.TryParse(child.Id, out var id) && results.ContainsKey(id))
{
alreadyInResults = true;
break;
}
}
if (!alreadyInResults)
{
results[item.Id] = item;
}
}
}
}

Loading…
Cancel
Save