1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fix api/v3/mediacover route

This commit is contained in:
ta264 2021-10-26 21:12:53 +01:00
parent 4b06f6b506
commit ae5c7a3ace

View File

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