mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
Remove IHttpClient from StudiosImageProvider
This commit is contained in:
parent
2e0c2336cc
commit
7a0fa34162
|
@ -120,14 +120,10 @@ namespace MediaBrowser.Providers.Studios
|
||||||
|
|
||||||
public int Order => 0;
|
public int Order => 0;
|
||||||
|
|
||||||
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
return _httpClient.GetResponse(new HttpRequestOptions
|
var httpClient = _httpClientFactory.CreateClient();
|
||||||
{
|
return httpClient.GetAsync(url, cancellationToken);
|
||||||
CancellationToken = cancellationToken,
|
|
||||||
Url = url,
|
|
||||||
BufferContent = false
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -135,7 +131,6 @@ namespace MediaBrowser.Providers.Studios
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="url">The URL.</param>
|
/// <param name="url">The URL.</param>
|
||||||
/// <param name="file">The file.</param>
|
/// <param name="file">The file.</param>
|
||||||
/// <param name="httpClient">The HTTP client.</param>
|
|
||||||
/// <param name="fileSystem">The file system.</param>
|
/// <param name="fileSystem">The file system.</param>
|
||||||
/// <param name="cancellationToken">The cancellation token.</param>
|
/// <param name="cancellationToken">The cancellation token.</param>
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
|
|
Loading…
Reference in a new issue