gigatorrents: add freeleech search. #9456

This commit is contained in:
Garfield69 2023-03-29 06:15:49 +13:00
parent a8083062ad
commit a0ea02e4f6
1 changed files with 6 additions and 1 deletions

View File

@ -58,6 +58,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
@ -97,7 +101,8 @@ search:
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
incldead: 1
# 0 active, 1 incldead, 2 onlydead, 5 freeleech, 6 2x upload, 7 highlighted
incldead: "{{ if .Config.freeleech }}5{{ else }}1{{ end }}"
blah: 0
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"