improve performance in the wrong place

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
dkanada 2021-02-23 23:36:49 +09:00 committed by GitHub
parent 64cc5889f2
commit 454deece13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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