diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2021-02-23 23:36:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 23:36:49 +0900 |
| commit | 454deece13b138e5bcb694732b622be27cb6d204 (patch) | |
| tree | 9ad1b33e160bf6c02d108595572835fdf27b7cf7 /Emby.Server.Implementations/Plugins/PluginManager.cs | |
| parent | 64cc5889f2be0dae6b0425c569bd84f996a0e435 (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.cs | 2 |
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 |
