mirror of
https://github.com/jellyfin/jellyfin-plugin-anilist.git
synced 2024-11-23 05:59:41 +00:00
Address comments
This commit is contained in:
parent
1427eb04ca
commit
d25bf02358
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user