mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torznab movie-search: normalize imdbid
This commit is contained in:
@@ -98,11 +98,13 @@ namespace Jackett.Controllers
|
||||
return GetErrorXML(201, "Incorrect parameter: please specify either imdbid or q");
|
||||
}
|
||||
|
||||
if (ParseUtil.GetImdbID(torznabQuery.ImdbID) == null)
|
||||
var imdbid = ParseUtil.GetImdbID(torznabQuery.ImdbID);
|
||||
if (imdbid == null)
|
||||
{
|
||||
logger.Warn(string.Format("A movie-search request from {0} was made with an invalid imdbid.", Request.GetOwinContext().Request.RemoteIpAddress));
|
||||
return GetErrorXML(201, "Incorrect parameter: invalid imdbid format");
|
||||
}
|
||||
torznabQuery.ImdbID = "tt" + ((int)imdbid).ToString("D7");
|
||||
|
||||
if (!indexer.TorznabCaps.SupportsImdbSearch)
|
||||
{
|
||||
|
Reference in New Issue
Block a user