Skip to content

Commit

Permalink
fix: check staff name, not role name, during transform to person info
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Jan 16, 2025
1 parent 64552aa commit 3ebe7ec
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 @@ -345,7 +345,7 @@ public async Task<EpisodeImages> GetImages(CancellationToken cancellationToken)
=> image != null && image.IsAvailable ? image.ToURLString(internalUrl: true) : null;

private static PersonInfo? RoleToPersonInfo(IReadOnlyList<Role> roles, string roleProvider)
=> string.IsNullOrWhiteSpace(roles[0].Name) ? null : roles[0].Type switch {
=> string.IsNullOrWhiteSpace(roles[0].Staff.Name) ? null : roles[0].Type switch {
CreatorRoleType.Director => new PersonInfo {
Type = PersonKind.Director,
Name = roles[0].Staff.Name,
Expand Down

0 comments on commit 3ebe7ec

Please sign in to comment.