From e9f4f7665a437318ea4c146be5f475399929b081 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Tue, 31 Dec 2024 03:09:58 +0100 Subject: [PATCH] fix: fix up creator role for latest daily server --- Shokofin/API/Info/EpisodeInfo.cs | 2 +- Shokofin/API/Models/Role.cs | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Shokofin/API/Info/EpisodeInfo.cs b/Shokofin/API/Info/EpisodeInfo.cs index 8dbab50..eea1075 100644 --- a/Shokofin/API/Info/EpisodeInfo.cs +++ b/Shokofin/API/Info/EpisodeInfo.cs @@ -380,7 +380,7 @@ public async Task GetImages(CancellationToken cancellationToken) { roleProvider, roles[0].Staff.Id!.Value.ToString() }, }, }, - CreatorRoleType.Seiyuu => new PersonInfo { + CreatorRoleType.Actor => new PersonInfo { Type = PersonKind.Actor, Name = roles[0].Staff.Name, Role = roles.Select(role => role?.Character?.Name ?? string.Empty).Where(role => !string.IsNullOrEmpty(role)).Order().Join(" / "), diff --git a/Shokofin/API/Models/Role.cs b/Shokofin/API/Models/Role.cs index 773a56e..9e9b4ce 100644 --- a/Shokofin/API/Models/Role.cs +++ b/Shokofin/API/Models/Role.cs @@ -26,7 +26,7 @@ public class Role : IEquatable { /// /// The character played, the is of type - /// . + /// . /// public Person? Character { get; set; } @@ -101,7 +101,12 @@ public enum CreatorRoleType { /// /// Voice actor or voice actress. /// - Seiyuu, + Actor, + + /// + /// Synonym of for backwards compatibility for a few server versions. + /// + Seiyuu = Actor, /// /// This can be anything involved in writing the show.