From 05061b13b691886c3eb63506870567f133c842b9 Mon Sep 17 00:00:00 2001 From: Mik1ll <27949189+Mik1ll@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:25:43 -0800 Subject: [PATCH] Update http client --- Providers/SeriesProvider.cs | 18 +++++++++--------- Shizou.JellyfinPlugin.csproj | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Providers/SeriesProvider.cs b/Providers/SeriesProvider.cs index 990a93b..b947921 100644 --- a/Providers/SeriesProvider.cs +++ b/Providers/SeriesProvider.cs @@ -76,19 +76,19 @@ private async Task AddPeople(MetadataResult result, int animeId, Cancell SortOrder = credit.AniDbCharacterId is not null ? credit.Role switch { - var r when r.Contains("Main", StringComparison.OrdinalIgnoreCase) => 0, - var r when r.Contains("Secondary", StringComparison.OrdinalIgnoreCase) => 1, - var r when r.Contains("appears", StringComparison.OrdinalIgnoreCase) => 2, + { } r when r.Contains("Main", StringComparison.OrdinalIgnoreCase) => 0, + { } r when r.Contains("Secondary", StringComparison.OrdinalIgnoreCase) => 1, + { } r when r.Contains("appears", StringComparison.OrdinalIgnoreCase) => 2, _ => 3 } : credit.Role switch { - var r when r.Contains("Original Work", StringComparison.OrdinalIgnoreCase) => 4, - var r when r.Contains("Direction", StringComparison.OrdinalIgnoreCase) => 5, - var r when r.Contains("Storyboard", StringComparison.OrdinalIgnoreCase) => 6, - var r when r.Contains("Series Composition", StringComparison.OrdinalIgnoreCase) => 6, - var r when r.Contains("Episode Direction", StringComparison.OrdinalIgnoreCase) => 7, - var r when r.Contains("Character Design", StringComparison.OrdinalIgnoreCase) => 8, + { } r when r.Contains("Original Work", StringComparison.OrdinalIgnoreCase) => 4, + { } r when r.Contains("Direction", StringComparison.OrdinalIgnoreCase) => 5, + { } r when r.Contains("Storyboard", StringComparison.OrdinalIgnoreCase) => 6, + { } r when r.Contains("Series Composition", StringComparison.OrdinalIgnoreCase) => 6, + { } r when r.Contains("Episode Direction", StringComparison.OrdinalIgnoreCase) => 7, + { } r when r.Contains("Character Design", StringComparison.OrdinalIgnoreCase) => 8, _ => int.MaxValue }, ProviderIds = new Dictionary() { { ProviderIds.ShizouCreator, credit.AniDbCreator.Id.ToString() } } diff --git a/Shizou.JellyfinPlugin.csproj b/Shizou.JellyfinPlugin.csproj index e94a48b..968bcd1 100644 --- a/Shizou.JellyfinPlugin.csproj +++ b/Shizou.JellyfinPlugin.csproj @@ -10,18 +10,18 @@ - - + + - - + + - +