carphunter: updated title selector

and multi cat search logic
This commit is contained in:
Garfield69 2021-07-30 16:29:01 +12:00
parent e136e75d8e
commit 3486771ea6
1 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ search:
- name: re_replace - name: re_replace
args: ["[^a-zA-Z0-9]+", "%"] args: ["[^a-zA-Z0-9]+", "%"]
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}cat[]={{.}}&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 both, 1 onlyactive, 2 onlydead, 3 onlyfree, 4 x2 torrents, 5 mytorrents, 6 waiting for seeds # 0 both, 1 onlyactive, 2 onlydead, 3 onlyfree, 4 x2 torrents, 5 mytorrents, 6 waiting for seeds
incldead: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}" incldead: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
@ -118,13 +118,13 @@ search:
- name: querystring - name: querystring
args: cat args: cat
title: title:
selector: a[href^="/details.php?id="] selector: a[href*="/details.php?id="]
attribute: title attribute: title
details: details:
selector: a[href^="/details.php?id="] selector: a[href*="/details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="/details.php?id="] selector: a[href*="/details.php?id="]
attribute: href attribute: href
filters: filters:
- name: replace - name: replace