From f503f0543e72c37a954df23a2c67fb4684142cbb Mon Sep 17 00:00:00 2001 From: Guizzoni Date: Wed, 16 Aug 2017 07:38:04 -0300 Subject: [PATCH] Manicomio Share: improve search results (#1670) * Fixes episode search in Manicomio Share The tracker uses the pattern "name - s??e??" instead of "name s??e??" so we have to manually add a "-" in the query * Better fix Updated to a better fix! * Fixed the input name * Added a workaround to solve the year issue * Fixed the re_replace order --- src/Jackett/Definitions/manicomioshare.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Definitions/manicomioshare.yml b/src/Jackett/Definitions/manicomioshare.yml index db8dd3327..ae0faa3ac 100644 --- a/src/Jackett/Definitions/manicomioshare.yml +++ b/src/Jackett/Definitions/manicomioshare.yml @@ -211,8 +211,14 @@ search: path: pesquisa.php + keywordsfilters: + # workaroud to remove year in search keywords + - name: re_replace + args: ["([1-2]\\d{3})", ""] + - name: re_replace + args: ["[^a-zA-Z0-9]+", "%"] inputs: - busca: "{{ .Query.Keywords }}" + busca: "{{ .Keywords }}" rows: selector: table#tbltorrent > tbody > tr[data-id] fields: