Skip to content

Commit

Permalink
fix: hopefully fix character names breaking everything
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Dec 10, 2024
1 parent 21876e6 commit a96481e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/API/Info/EpisodeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public async Task<EpisodeImages> GetImages(CancellationToken cancellationToken)
CreatorRoleType.Seiyuu => new PersonInfo {
Type = PersonKind.Actor,
Name = roles[0].Staff.Name,
Role = roles.Select(role => role.Character!.Name).Order().Join(" / "),
Role = roles.Select(role => role?.Character?.Name ?? string.Empty).Where(role => !string.IsNullOrEmpty(role)).Order().Join(" / "),
ImageUrl = GetImagePath(roles[0].Staff.Image),
ProviderIds = new() {
{ roleProvider, roles[0].Staff.Id!.Value.ToString() },
Expand Down

0 comments on commit a96481e

Please sign in to comment.