Expand director category and add roles in mappings

#23
This commit is contained in:
Sergey Krashevich committed 2024-05-17 19:01:38 +03:00
1 parent 5112a0a856
commit 06a4935223
1 file changed
+4 -2
@@ -270,11 +270,13 @@ namespace Jellyfin.Plugin.Kinopoisk
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,
};
}