Fix duplicated movies when group movies into collections is enabled

pull/5324/head
Mister Rajoy 4 years ago
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…
Cancel
Save