aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/PluginsController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Controllers/PluginsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/PluginsController.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.cs
index 1365764fb..365bb2248 100644
--- a/Jellyfin.Api/Controllers/PluginsController.cs
+++ b/Jellyfin.Api/Controllers/PluginsController.cs
@@ -303,16 +303,16 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
- var imgPath = Path.Combine(plugin.Path, plugin.Manifest.ImageUrl ?? string.Empty);
+ var imagePath = Path.Combine(plugin.Path, plugin.Manifest.ImagePath ?? string.Empty);
if (((ServerConfiguration)_config.CommonConfiguration).DisablePluginImages
- || plugin.Manifest.ImageUrl == null
- || !System.IO.File.Exists(imgPath))
+ || plugin.Manifest.ImagePath == null
+ || !System.IO.File.Exists(imagePath))
{
return NotFound();
}
- imgPath = Path.Combine(plugin.Path, plugin.Manifest.ImageUrl);
- return PhysicalFile(imgPath, MimeTypes.GetMimeType(imgPath));
+ imagePath = Path.Combine(plugin.Path, plugin.Manifest.ImagePath);
+ return PhysicalFile(imagePath, MimeTypes.GetMimeType(imagePath));
}
/// <summary>