improve performance in the wrong place

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/5217/head
dkanada 3 years ago committed by GitHub
parent 64cc5889f2
commit 454deece13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -381,7 +381,7 @@ namespace Emby.Server.Implementations.Plugins
if (!string.IsNullOrEmpty(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);
var downloadStream = await HttpClientFactory

Loading…
Cancel
Save