mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Specify image file return for GetItemImage2
This commit is contained in:
parent
ec2a5e4fb0
commit
a698dab66f
2 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
{
|
{
|
||||||
return Redirect("index.html?start=wizard#!/wizardstart.html");
|
return Redirect("index.html?start=wizard#!/wizardstart.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
return PhysicalFile(_resourceFileManager.GetResourcePath(basePath, path), MimeTypes.GetMimeType(path));
|
return PhysicalFile(_resourceFileManager.GetResourcePath(basePath, path), MimeTypes.GetMimeType(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -431,6 +431,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
[HttpHead("Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}", Name = "HeadItemImage2")]
|
[HttpHead("Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}", Name = "HeadItemImage2")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
|
[ProducesImageFile]
|
||||||
public async Task<ActionResult> GetItemImage2(
|
public async Task<ActionResult> GetItemImage2(
|
||||||
[FromRoute] Guid itemId,
|
[FromRoute] Guid itemId,
|
||||||
[FromRoute] ImageType imageType,
|
[FromRoute] ImageType imageType,
|
||||||
|
|
Loading…
Reference in a new issue