accept imdbid+q

This commit is contained in:
kaso17
2018-07-30 15:06:05 +02:00
parent ef316590cb
commit 0d6830b0aa

View File

@@ -289,11 +289,13 @@ namespace Jackett.Controllers
if (CurrentQuery.ImdbID != null) if (CurrentQuery.ImdbID != null)
{ {
/* We should allow this (helpful in case of aggregate idnexers)
if (!string.IsNullOrEmpty(CurrentQuery.SearchTerm)) if (!string.IsNullOrEmpty(CurrentQuery.SearchTerm))
{ {
logger.Warn($"A search request from {Request.GetOwinContext().Request.RemoteIpAddress} was made containing q and imdbid."); logger.Warn($"A search request from {Request.GetOwinContext().Request.RemoteIpAddress} was made containing q and imdbid.");
return GetErrorXML(201, "Incorrect parameter: please specify either imdbid or q"); return GetErrorXML(201, "Incorrect parameter: please specify either imdbid or q");
} }
*/
CurrentQuery.ImdbID = ParseUtil.GetFullImdbID(CurrentQuery.ImdbID); // normalize ImdbID CurrentQuery.ImdbID = ParseUtil.GetFullImdbID(CurrentQuery.ImdbID); // normalize ImdbID
if (CurrentQuery.ImdbID == null) if (CurrentQuery.ImdbID == null)