mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fix api/v3/mediacover route
This commit is contained in:
parent
4b06f6b506
commit
ae5c7a3ace
@ -25,7 +25,7 @@ public MediaCoverController(IAppFolderInfo appFolderInfo, IDiskProvider diskProv
|
|||||||
_mimeTypeProvider = new FileExtensionContentTypeProvider();
|
_mimeTypeProvider = new FileExtensionContentTypeProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet(@"author/{movieId:int}/{filename:regex((.+)\.(jpg|png|gif))}")]
|
[HttpGet(@"{movieId:int}/{filename:regex((.+)\.(jpg|png|gif))}")]
|
||||||
public IActionResult GetMediaCover(int movieId, string filename)
|
public IActionResult GetMediaCover(int movieId, string filename)
|
||||||
{
|
{
|
||||||
var filePath = Path.Combine(_appFolderInfo.GetAppDataPath(), "MediaCover", movieId.ToString(), filename);
|
var filePath = Path.Combine(_appFolderInfo.GetAppDataPath(), "MediaCover", movieId.ToString(), filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user