torrentz2: amendment to 9a071a3457

using title: without a query string causes 0 results which meant the
jackett dashboard TEST button failed.
now we only add title: if a query was supplied.
This commit is contained in:
Garfield69 2018-09-04 07:58:34 +12:00
parent 837e74a743
commit 760231be43
1 changed files with 1 additions and 4 deletions

View File

@ -69,11 +69,8 @@
paths:
- path: "{{if .Config.filter-verified }}verified{{else}}searchA{{end}}"
inputs:
f: "{{ .Keywords }}"
f: "{{if .Keywords }}title: {{else}}{{end}}{{ .Keywords }}"
safe: "{{if .Config.filter-safe }}1{{else}}0{{end}}"
keywordsfilters:
- name: prepend
args: "title: " # search only in title, https://torrentz2.eu/help
rows:
selector: "html body #wrap .results dl:has(a)"
# andmatch filter removed, see #3737