4thd: add freeleech filter #9456

untested
This commit is contained in:
Garfield69 2020-09-19 16:22:09 +12:00
parent 2656d5c12d
commit 9b31e9cf29
1 changed files with 6 additions and 3 deletions

View File

@ -47,6 +47,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
@ -86,7 +90,7 @@ search:
order_by: "{{ .Config.sort }}" order_by: "{{ .Config.sort }}"
order_way: "{{ .Config.type }}" order_way: "{{ .Config.type }}"
# 0 all 1 onlyfree # 0 all 1 onlyfree
filter_freeleech: 0 filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}"
title: "{{ .Keywords }}" title: "{{ .Keywords }}"
search_type: 1 search_type: 1
taglist: "" taglist: ""
@ -140,6 +144,5 @@ search:
img[src$="/freedownload.gif"]: 0 img[src$="/freedownload.gif"]: 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1
# Engine n/a # Engine n/a