mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-14 12:32:57 +01:00
Fixed: Accept ImdbIds in string format on Newznab endpoint
This commit is contained in:
parent
59df0351ac
commit
b6a08bdd9e
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ public async Task<IActionResult> GetNewznabResponse(int id, [FromQuery] NewznabR
|
|||
throw new BadRequestException("Missing Function Parameter");
|
||||
}
|
||||
|
||||
request.imdbid = request.imdbid.TrimStart('t');
|
||||
|
||||
if (request.imdbid.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
if (!int.TryParse(request.imdbid, out var imdb) || imdb == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue