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
This commit is contained in:
Guizzoni 2017-08-16 07:38:04 -03:00 committed by kaso17
parent 333f7297fa
commit f503f0543e
1 changed files with 7 additions and 1 deletions

View File

@ -211,8 +211,14 @@
search: search:
path: pesquisa.php 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: inputs:
busca: "{{ .Query.Keywords }}" busca: "{{ .Keywords }}"
rows: rows:
selector: table#tbltorrent > tbody > tr[data-id] selector: table#tbltorrent > tbody > tr[data-id]
fields: fields: