The Free Software Media System - Server Backend & API
Specify image file return for GetItemImage2
crobiberoa698dab66fb8
diff --git a/Jellyfin.Api/Controllers/DashboardController.cs b/Jellyfin.Api/Controllers/DashboardController.csindex d20964d662..7624fd79f8 100644--- a/Jellyfin.Api/Controllers/DashboardController.cs+++ b/Jellyfin.Api/Controllers/DashboardController.cs@@ -214,7 +214,7 @@ namespace Jellyfin.Api.Controllers{return Redirect("index.html?start=wizard#!/wizardstart.html");}-+return PhysicalFile(_resourceFileManager.GetResourcePath(basePath, path), MimeTypes.GetMimeType(path));}diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.csindex dbd569e07d..c012acef37 100644--- a/Jellyfin.Api/Controllers/ImageController.cs+++ b/Jellyfin.Api/Controllers/ImageController.cs@@ -431,6 +431,7 @@ namespace Jellyfin.Api.Controllers[HttpHead("Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}", Name = "HeadItemImage2")][ProducesResponseType(StatusCodes.Status200OK)][ProducesResponseType(StatusCodes.Status404NotFound)]+ [ProducesImageFile]public async Task<ActionResult> GetItemImage2([FromRoute] Guid itemId,[FromRoute] ImageType imageType,