ETTV: improve keywordsfilters

This commit is contained in:
kaso17 2017-11-10 11:30:11 +01:00
parent 05b1895205
commit 7007f2e650
1 changed files with 7 additions and 2 deletions

View File

@ -35,12 +35,17 @@
path: torrents-search.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ if .Keywords }}+{{else}}{{end}}{{ .Keywords }}"
search: "{{ .Keywords }}"
incldead: "1"
sort: id
order: desc
keywordsfilters:
- name: urlencode
- 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
rows:
selector: div.myFrame-content > div > table > tbody > tr[class]