refactor(kinopoisk-plugin): change return type of ToPersonType to PersonKind

This commit is contained in:
Sergey Krashevich committed 2024-05-13 00:52:15 +03:00
1 parent c516f0c287
commit 5112a0a856
1 file changed
+2 -2
@@ -265,7 +265,7 @@ namespace Jellyfin.Plugin.Kinopoisk
return res;
}
public static string ToPersonType(this StaffResponseProfessionKey src)
public static PersonKind ToPersonType(this StaffResponseProfessionKey src)
{
return src switch
{
@@ -274,7 +274,7 @@ namespace Jellyfin.Plugin.Kinopoisk
StaffResponseProfessionKey.WRITER => PersonKind.Writer,
StaffResponseProfessionKey.COMPOSER => PersonKind.Composer,
StaffResponseProfessionKey.PRODUCER or StaffResponseProfessionKey.PRODUCER_USSR => PersonKind.Producer,
_ => null,
// _ => PersonKind,
};
}