mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Removing duplicated found by the metadataprovider
This commit is contained in:
parent
862b4a42a7
commit
4efceb4238
@ -120,7 +120,8 @@ namespace Kyoo.Controllers
|
|||||||
if (show != null)
|
if (show != null)
|
||||||
return show;
|
return show;
|
||||||
show = await _metadataProvider.GetShowFromName(showTitle, showPath, library);
|
show = await _metadataProvider.GetShowFromName(showTitle, showPath, library);
|
||||||
show.People = (await _metadataProvider.GetPeople(show, library)).Select(x =>
|
show.People = (await _metadataProvider.GetPeople(show, library)).GroupBy(x => x.Slug).Select(x => x.First())
|
||||||
|
.Select(x =>
|
||||||
{
|
{
|
||||||
People existing = _libraryManager.GetPeopleBySlug(x.Slug);
|
People existing = _libraryManager.GetPeopleBySlug(x.Slug);
|
||||||
return existing != null ? new PeopleLink(existing, x.Role, x.Type) : x;
|
return existing != null ? new PeopleLink(existing, x.Role, x.Type) : x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user