Skip to content

Commit

Permalink
Expand director category and add roles in mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
skrashevich committed May 17, 2024
1 parent 5112a0a commit 06a4935
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,13 @@ public static PersonKind ToPersonType(this StaffResponseProfessionKey src)
return src switch
{
StaffResponseProfessionKey.ACTOR => PersonKind.Actor,
StaffResponseProfessionKey.DIRECTOR => PersonKind.Director,
StaffResponseProfessionKey.DIRECTOR or StaffResponseProfessionKey.VOICE_DIRECTOR or StaffResponseProfessionKey.OPERATOR => PersonKind.Director,
StaffResponseProfessionKey.WRITER => PersonKind.Writer,
StaffResponseProfessionKey.COMPOSER => PersonKind.Composer,
StaffResponseProfessionKey.PRODUCER or StaffResponseProfessionKey.PRODUCER_USSR => PersonKind.Producer,
// _ => PersonKind,
StaffResponseProfessionKey.TRANSLATOR => PersonKind.Translator,
StaffResponseProfessionKey.EDITOR => PersonKind.Editor,
_ => PersonKind.Unknown,
};
}

Expand Down

0 comments on commit 06a4935

Please sign in to comment.