Fixed: Accept ImdbIds in string format on Newznab endpoint

pull/211/head
Qstick 3 years ago
parent 59df0351ac
commit b6a08bdd9e

@ -52,6 +52,8 @@ namespace NzbDrone.Api.V1.Indexers
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…
Cancel
Save