From 06a4935223debb3f13268f4e2d9ccd7f9474c05c Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Fri, 17 May 2024 19:01:38 +0300 Subject: [PATCH] Expand director category and add roles in mappings #23 --- src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs index 1077c51..f45c25d 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs +++ b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs @@ -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, }; }