Address comments

This commit is contained in:
Hans Lehnert 2024-09-03 19:24:45 -07:00
parent 1427eb04ca
commit d25bf02358
6 changed files with 8 additions and 8 deletions

View File

@ -73,8 +73,8 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
public async Task<HttpResponseMessage> 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);
}
}
}

View File

@ -112,7 +112,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
public async Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
{
using var httpClient = Plugin.Instance.GetHttpClient();
var httpClient = Plugin.Instance.GetHttpClient();
return await httpClient.GetAsync(url).ConfigureAwait(false);
}
}

View File

@ -59,7 +59,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
public async Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
{
using var httpClient = Plugin.Instance.GetHttpClient();
var httpClient = Plugin.Instance.GetHttpClient();
return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false);
}
}

View File

@ -59,7 +59,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
public async Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
{
using var httpClient = Plugin.Instance.GetHttpClient();
var httpClient = Plugin.Instance.GetHttpClient();
return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false);
}
}

View File

@ -110,7 +110,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
public async Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
{
using var httpClient = Plugin.Instance.GetHttpClient();
var httpClient = Plugin.Instance.GetHttpClient();
return await httpClient.GetAsync(url).ConfigureAwait(false);
}
}

View File

@ -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;
}