فهرست منبع

improve performance in the wrong place

Co-authored-by: Cody Robibero <cody@robibe.ro>
dkanada 4 سال پیش
والد
کامیت
454deece13
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Emby.Server.Implementations/Plugins/PluginManager.cs

+ 1 - 1
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