mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
P E R F O R M A N C E
This commit is contained in:
parent
9c6b4f033a
commit
3a91047413
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
private async Task DownloadImage(string providerName, string url, Guid urlHash, string pointerCachePath)
|
private async Task DownloadImage(string providerName, string url, Guid urlHash, string pointerCachePath)
|
||||||
{
|
{
|
||||||
using var result = await _providerManager.GetSearchImage(providerName, url, CancellationToken.None).ConfigureAwait(false);
|
using var result = await _providerManager.GetSearchImage(providerName, url, CancellationToken.None).ConfigureAwait(false);
|
||||||
var ext = result.Content.Headers.ContentType.MediaType.Split('/').Last();
|
var ext = result.Content.Headers.ContentType.MediaType.Split('/')[^1];
|
||||||
var fullCachePath = GetFullCachePath(urlHash + "." + ext);
|
var fullCachePath = GetFullCachePath(urlHash + "." + ext);
|
||||||
|
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(fullCachePath));
|
Directory.CreateDirectory(Path.GetDirectoryName(fullCachePath));
|
||||||
|
|
Loading…
Reference in a new issue