Skip to content

The Free Software Media System - Server Backend & API

improve performance in the wrong place

dkanada454deece13b1
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs
index b4ab551579..4dc2985d38 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