mirror of https://github.com/Jackett/Jackett
7tor: fix TEST mode for #4784
the getnew search does not appear to be working any longer, so in no keywords are supplied we will use TEST instead. Not ideal but better than no-results = error.
This commit is contained in:
parent
ee8fc6a78f
commit
91b87ee7be
|
@ -1617,23 +1617,22 @@ namespace Jackett.Common.Indexers
|
|||
queryCollection.Add("t", "0");
|
||||
queryCollection.Add("submit", "Search");
|
||||
queryCollection.Add("sr", "topics");
|
||||
//queryCollection.Add("sr", "posts");
|
||||
//queryCollection.Add("ch", "99999");
|
||||
|
||||
// if the search string is empty use the getnew view
|
||||
if (string.IsNullOrWhiteSpace(searchString))
|
||||
{
|
||||
queryCollection.Add("search_id", "newposts");
|
||||
//queryCollection.Add("search_id", "newposts");
|
||||
searchString = "test";
|
||||
}
|
||||
else // use the normal search
|
||||
{
|
||||
//else // use the normal search
|
||||
//{
|
||||
searchString = searchString.Replace("-", " ");
|
||||
queryCollection.Add("terms", "all");
|
||||
queryCollection.Add("keywords", searchString);
|
||||
queryCollection.Add("author", "");
|
||||
queryCollection.Add("sc", "1");
|
||||
queryCollection.Add("sf", "titleonly");
|
||||
}
|
||||
//}
|
||||
|
||||
var searchUrl = SearchUrl + "?" + queryCollection.GetQueryString();
|
||||
results = await RequestStringWithCookies(searchUrl);
|
||||
|
|
Loading…
Reference in New Issue