|
|
|
@ -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>
|
|
|
|
|