mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Initializing the link's show'
This commit is contained in:
parent
4efceb4238
commit
c0abd43aac
@ -19,9 +19,10 @@ namespace Kyoo.Models
|
||||
|
||||
public PeopleLink() {}
|
||||
|
||||
public PeopleLink(People people, string role, string type)
|
||||
public PeopleLink(People people, Show show, string role, string type)
|
||||
{
|
||||
People = people;
|
||||
Show = show;
|
||||
Role = role;
|
||||
Type = type;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ namespace Kyoo.Controllers
|
||||
.Select(x =>
|
||||
{
|
||||
People existing = _libraryManager.GetPeopleBySlug(x.Slug);
|
||||
return existing != null ? new PeopleLink(existing, x.Role, x.Type) : x;
|
||||
return existing != null ? new PeopleLink(existing, show, x.Role, x.Type) : x;
|
||||
}).ToList();
|
||||
return show;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user