mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 21:26:08 +00:00
Cardigann: move preprocessingfilters after re-login check
This commit is contained in:
parent
7f7c6eb1c4
commit
6200eba45d
1 changed files with 6 additions and 6 deletions
|
@ -1100,12 +1100,6 @@ namespace Jackett.Indexers
|
|||
response = await RequestStringWithCookies(searchUrl, null, null, headers);
|
||||
var results = response.Content;
|
||||
|
||||
if (Search.Preprocessingfilters != null)
|
||||
{
|
||||
results = applyFilters(results, Search.Preprocessingfilters, variables);
|
||||
logger.Debug(string.Format("CardigannIndexer ({0}): result after preprocessingfilters: {1}", ID, results));
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var SearchResultParser = new HtmlParser();
|
||||
|
@ -1130,6 +1124,12 @@ namespace Jackett.Indexers
|
|||
|
||||
checkForError(response, Definition.Search.Error);
|
||||
|
||||
if (Search.Preprocessingfilters != null)
|
||||
{
|
||||
results = applyFilters(results, Search.Preprocessingfilters, variables);
|
||||
SearchResultDocument = SearchResultParser.Parse(results);
|
||||
logger.Debug(string.Format("CardigannIndexer ({0}): result after preprocessingfilters: {1}", ID, results));
|
||||
}
|
||||
|
||||
var RowsDom = SearchResultDocument.QuerySelectorAll(Search.Rows.Selector);
|
||||
List<IElement> Rows = new List<IElement>();
|
||||
|
|
Loading…
Reference in a new issue