From 91b87ee7be556afaacc5f2c525bfc661aa28cead Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 28 Feb 2019 13:19:19 +1300 Subject: [PATCH] 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. --- src/Jackett.Common/Indexers/7tor.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Indexers/7tor.cs b/src/Jackett.Common/Indexers/7tor.cs index 7c7e2e43b..510b184ab 100644 --- a/src/Jackett.Common/Indexers/7tor.cs +++ b/src/Jackett.Common/Indexers/7tor.cs @@ -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);