extremebits: add freeleech filter #9456

also add minimumratio
This commit is contained in:
Garfield69 2020-09-12 09:58:01 +12:00
parent 420b9672cd
commit e7f602f6bf
1 changed files with 9 additions and 3 deletions

View File

@ -52,6 +52,10 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -91,9 +95,9 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 active 1 incldead 2 onlydead 3 freeleech # 0 active, 1 incldead, 2 onlydead, 3 freeleech
incl: 1 incl: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
# 0 name 1 descr 2 both # 0 name, 1 descr, 2 both
searchin: 0 searchin: 0
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
@ -154,4 +158,6 @@ search:
filters: filters:
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05" args: "2006-01-02 15:04:05"
minimumratio:
text: 0.6
# TBDEV # TBDEV