diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/AniListAnimeImageProvider.cs b/Jellyfin.Plugin.AniList/Providers/AniList/AniListAnimeImageProvider.cs index 7a8a661..7881f20 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/AniListAnimeImageProvider.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/AniListAnimeImageProvider.cs @@ -73,8 +73,8 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - using var httpClient = Plugin.Instance.GetHttpClient(); - return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false); + var httpClient = Plugin.Instance.GetHttpClient(); + return await httpClient.GetAsync(url).ConfigureAwait(false); } } } diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/AniListMovieProvider.cs b/Jellyfin.Plugin.AniList/Providers/AniList/AniListMovieProvider.cs index df76715..61d9c13 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/AniListMovieProvider.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/AniListMovieProvider.cs @@ -112,7 +112,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - using var httpClient = Plugin.Instance.GetHttpClient(); + var httpClient = Plugin.Instance.GetHttpClient(); return await httpClient.GetAsync(url).ConfigureAwait(false); } } diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonImageProvider.cs b/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonImageProvider.cs index f1e4dc0..8589f0d 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonImageProvider.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonImageProvider.cs @@ -59,7 +59,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - using var httpClient = Plugin.Instance.GetHttpClient(); + var httpClient = Plugin.Instance.GetHttpClient(); return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false); } } diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonProvider.cs b/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonProvider.cs index 199e417..85e6be4 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonProvider.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/AniListPersonProvider.cs @@ -59,7 +59,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - using var httpClient = Plugin.Instance.GetHttpClient(); + var httpClient = Plugin.Instance.GetHttpClient(); return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false); } } diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/AniListSeriesProvider.cs b/Jellyfin.Plugin.AniList/Providers/AniList/AniListSeriesProvider.cs index 34fa751..e5b0eef 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/AniListSeriesProvider.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/AniListSeriesProvider.cs @@ -110,7 +110,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - using var httpClient = Plugin.Instance.GetHttpClient(); + var httpClient = Plugin.Instance.GetHttpClient(); return await httpClient.GetAsync(url).ConfigureAwait(false); } } diff --git a/Jellyfin.Plugin.AniList/Providers/AniList/ApiModel.cs b/Jellyfin.Plugin.AniList/Providers/AniList/ApiModel.cs index a563082..3425474 100644 --- a/Jellyfin.Plugin.AniList/Providers/AniList/ApiModel.cs +++ b/Jellyfin.Plugin.AniList/Providers/AniList/ApiModel.cs @@ -186,12 +186,12 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList if (config.PersonLanguageFilterPreference != LanguageFilterType.All) { if (config.PersonLanguageFilterPreference == LanguageFilterType.Japanese - && !va.language.Equals("Japanese", StringComparison.InvariantCultureIgnoreCase)) + && !va.language.Equals("Japanese", StringComparison.OrdinalIgnoreCase)) { continue; } if (config.PersonLanguageFilterPreference == LanguageFilterType.Localized - && va.language.Equals("Japanese", StringComparison.InvariantCultureIgnoreCase)) + && va.language.Equals("Japanese", StringComparison.OrdinalIgnoreCase)) { continue; }