From 454deece13b138e5bcb694732b622be27cb6d204 Mon Sep 17 00:00:00 2001 From: dkanada Date: Tue, 23 Feb 2021 23:36:49 +0900 Subject: [PATCH] improve performance in the wrong place Co-authored-by: Cody Robibero --- Emby.Server.Implementations/Plugins/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index b4ab55157..4dc2985d3 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -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