puntotorrrent: add freeleech search #9456

This commit is contained in:
Garfield69 2020-10-02 07:36:49 +13:00
parent 64788e23f6
commit 853acb1b6a
1 changed files with 6 additions and 1 deletions

View File

@ -106,6 +106,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
@ -151,7 +155,8 @@ search:
inputs:
page: torrents
$raw: "&category={{ range .Categories }}{{.}};{{end}}"
active: 1
# 0 all, 1 onlyactive, 2 onlydead, 3 gold, 4 silver, 5 upx2, 6 upx3
active: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
search: "{{ .Keywords }}"
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"