x264: enable direct IMDB search

This commit is contained in:
kaso17 2017-01-25 17:48:40 +01:00
parent 0db80e9cc1
commit df340f8f84
1 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,8 @@ namespace Jackett.Indexers
Encoding = Encoding.GetEncoding("iso-8859-1");
Language = "en-us";
TorznabCaps.SupportsImdbSearch = true;
AddCategoryMapping(20, TorznabCatType.Movies); // Movies&TV/Sources
AddCategoryMapping(53, TorznabCatType.MoviesHD); // Movies/1080p
AddCategoryMapping(30, TorznabCatType.MoviesHD); // Movies/576p
@ -117,7 +119,11 @@ namespace Jackett.Indexers
queryCollection.Add("xtype", "0");
queryCollection.Add("stype", "0");
if (!string.IsNullOrWhiteSpace(searchString))
if (query.ImdbID != null)
{
queryCollection.Add("search", query.ImdbID);
}
else if (!string.IsNullOrWhiteSpace(searchString))
{
queryCollection.Add("search", searchString);
}