improve performance in the wrong place
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
64cc5889f2
commit
454deece13
|
@ -381,7 +381,7 @@ namespace Emby.Server.Implementations.Plugins
|
||||||
if (!string.IsNullOrEmpty(packageInfo.ImageUrl))
|
if (!string.IsNullOrEmpty(packageInfo.ImageUrl))
|
||||||
{
|
{
|
||||||
var url = new Uri(packageInfo.ImageUrl);
|
var url = new Uri(packageInfo.ImageUrl);
|
||||||
imagePath = Path.Join(path, url.Segments.Last());
|
imagePath = Path.Join(path, url.Segments[^1]);
|
||||||
|
|
||||||
await using var fileStream = File.OpenWrite(imagePath);
|
await using var fileStream = File.OpenWrite(imagePath);
|
||||||
var downloadStream = await HttpClientFactory
|
var downloadStream = await HttpClientFactory
|
||||||
|
|
Loading…
Reference in New Issue
Block a user