From 6200eba45df70aec4b23f0c4f87c62d3d7e070eb Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 24 Oct 2017 11:51:54 +0200 Subject: [PATCH] Cardigann: move preprocessingfilters after re-login check --- src/Jackett/Indexers/CardigannIndexer.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Jackett/Indexers/CardigannIndexer.cs b/src/Jackett/Indexers/CardigannIndexer.cs index 7bf887e76..42cda605d 100644 --- a/src/Jackett/Indexers/CardigannIndexer.cs +++ b/src/Jackett/Indexers/CardigannIndexer.cs @@ -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 Rows = new List();