Limit IMDB searches to movies

#5124
This commit is contained in:
flightlevel
2019-05-11 13:27:25 +10:00
parent 3530fa8244
commit f86e8dd5b6
32 changed files with 40 additions and 42 deletions

View File

@@ -355,7 +355,7 @@ namespace Jackett.Server.Controllers
return GetErrorXML(201, "Incorrect parameter: invalid imdbid format");
}
if (!CurrentIndexer.TorznabCaps.SupportsImdbSearch)
if (!CurrentIndexer.TorznabCaps.SupportsImdbMovieSearch)
{
logger.Warn($"A search request with imdbid from {Request.HttpContext.Connection.RemoteIpAddress} was made but the indexer {CurrentIndexer.DisplayName} doesn't support it.");
return GetErrorXML(203, "Function Not Available: imdbid is not supported by this indexer");