aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/PluginsController.cs
diff options
context:
space:
mode:
authorGreenback <jimcartlidge@yahoo.co.uk>2020-12-18 20:52:44 +0000
committerGreenback <jimcartlidge@yahoo.co.uk>2020-12-18 20:52:44 +0000
commit5d748c0e9f1ad87bece090934c5da6c4edacb8f7 (patch)
tree27e73673f3090a8ec40d4b8a875f5d5d6bff81f5 /Jellyfin.Api/Controllers/PluginsController.cs
parentce19f2be55c7484488bebfd29bd42c1f082ae888 (diff)
Renamed to ImagePath
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>