mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-03 12:23:27 +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 Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||
public Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||
{
|
||||
return _httpClient.GetResponse(new HttpRequestOptions
|
||||
{
|
||||
CancellationToken = cancellationToken,
|
||||
Url = url,
|
||||
BufferContent = false
|
||||
});
|
||||
var httpClient = _httpClientFactory.CreateClient();
|
||||
return httpClient.GetAsync(url, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -135,7 +131,6 @@ namespace MediaBrowser.Providers.Studios
|
|||
/// </summary>
|
||||
/// <param name="url">The URL.</param>
|
||||
/// <param name="file">The file.</param>
|
||||
/// <param name="httpClient">The HTTP client.</param>
|
||||
/// <param name="fileSystem">The file system.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
|
|
Loading…
Reference in a new issue