ebooks-shares: add freeleech filter #9456

untested
This commit is contained in:
Garfield69 2020-09-19 14:23:56 +12:00
parent e177081ab7
commit f85e608498
1 changed files with 8 additions and 4 deletions

View File

@ -268,6 +268,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
@ -310,11 +314,11 @@ search:
- path: torrents-search.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
search: "{{if .Keywords}}\"{{.Keywords}}\"{{else}}{{end}}"
search: "{{ if .Keywords }}\"{{ .Keywords }}\"{{ else }}{{ end }}"
# 0 only active 1 incl dead 2 only dead
incldead: 0
# 0 all 1 not freeleech 2 only freeleech
freeleech: 0
freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 all 1 english 2 french 3 german 4 italian 5 japanese 6 spanish 7 russian 8 other
lang: 0
sort: "{{ .Config.sort }}"
@ -357,5 +361,5 @@ search:
img[src="images/free.gif"]: 0
"*": 1
uploadvolumefactor:
case:
"*": 1
text: 1
# engine tbd