From b8507c71b64b114def922364808cd81890053a77 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 29 Nov 2017 19:10:42 +0100 Subject: [PATCH] ETTV: revert to old keywordsfilters they fixed their search engine --- src/Jackett.Common/Definitions/ettv.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/ettv.yml b/src/Jackett.Common/Definitions/ettv.yml index 790eb5f3a..b83110fb8 100644 --- a/src/Jackett.Common/Definitions/ettv.yml +++ b/src/Jackett.Common/Definitions/ettv.yml @@ -37,11 +37,19 @@ $raw: "{{range .Categories}}c{{.}}=1&{{end}}" search: "{{ .Keywords }}" incldead: "1" - + keywordsfilters: + - name: replace + args: ["-", " "] # remove special search character (negative search) + - name: replace + args: ["+", " "] # remove special search character (positive search) + - name: re_replace + args: ["(\\w+)", " +$1"] # prepend + to each word + - name: re_replace + args: ["\\s+", " "] # clean up whitespaces (multiple consecutive spaces confuses the search engine) rows: selector: div.myFrame-content > div > table > tbody > tr[class] filters: - - name: andmatch + - name: andmatch # they ignore keywords <= characters, so we still andmatch it, see https://www.ettv.tv/forum/view/topic/and-search-operator-broken--70 fields: download: selector: a[href^="/torrent/"]