fix actor meta loss #10

This commit is contained in:
cxfksword 2023-01-02 14:12:21 +08:00
parent 2958a52ea5
commit c9b418da70
1 changed files with 3 additions and 3 deletions

View File

@ -150,9 +150,9 @@ namespace Jellyfin.Plugin.MetaShark.Providers
result.HasMetadata = true; result.HasMetadata = true;
subject.LimitDirectorCelebrities.Take(this.config.MaxCastMembers).ToList().ForEach(c => result.AddPerson(new PersonInfo subject.LimitDirectorCelebrities.Take(this.config.MaxCastMembers).ToList().ForEach(c => result.AddPerson(new PersonInfo
{ {
Name = c.Name == "" ? "未知" : c.Name, Name = c.Name,
Type = c.RoleType == "" ? "未知" : c.Name, Type = c.RoleType,
Role = c.Role == "" ? "未知" : c.Name, Role = c.Role,
ImageUrl = c.Img, ImageUrl = c.Img,
ProviderIds = new Dictionary<string, string> { { DoubanProviderId, c.Id } }, ProviderIds = new Dictionary<string, string> { { DoubanProviderId, c.Id } },
})); }));