uniongang: add freeleech search. #9456

This commit is contained in:
Garfield69
2023-03-30 09:07:16 +13:00
parent 78a665223f
commit fe525ce581

View File

@@ -49,6 +49,10 @@ settings:
type: checkbox type: checkbox
label: Strip Russian Letters label: Strip Russian Letters
default: false default: false
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
login: login:
path: takelogin.php path: takelogin.php
@@ -68,8 +72,8 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
incldead: 1 # 0 active, 1 incldead, 2 onlydead, 3 goldtorrents, 5 silvertorrents, 4 noseeds
dsearch: "" incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
rows: rows:
selector: table.embedded > tbody > tr:has(a[href^="download.php?id="]) selector: table.embedded > tbody > tr:has(a[href^="download.php?id="])