aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Plugins/PluginManager.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2021-02-23 23:36:49 +0900
committerGitHub <noreply@github.com>2021-02-23 23:36:49 +0900
commit454deece13b138e5bcb694732b622be27cb6d204 (patch)
tree9ad1b33e160bf6c02d108595572835fdf27b7cf7 /Emby.Server.Implementations/Plugins/PluginManager.cs
parent64cc5889f2be0dae6b0425c569bd84f996a0e435 (diff)
improve performance in the wrong place
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Emby.Server.Implementations/Plugins/PluginManager.cs')
-rw-r--r--Emby.Server.Implementations/Plugins/PluginManager.cs2
1 files changed, 1 insertions, 1 deletions
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