unlimitz: add freeleech filter #9456

add minimumratio
This commit is contained in:
Garfield69 2020-09-16 13:09:08 +12:00
parent f8cfdeba20
commit 4c500ef4ab
1 changed files with 10 additions and 3 deletions

View File

@ -62,6 +62,10 @@ settings:
- name: staffpass - name: staffpass
type: text type: text
label: Staff Pass label: Staff Pass
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -113,15 +117,16 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 title 1 descr 2 both # 0 title, 1 descr, 2 both
blah: 0 blah: 0
# 0 active 1 incldead 2 onlydead # 0 active, 1 incldead, 2 onlydead
incldead: 1 incldead: 1
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
# site does not support imdbid search or provide imdb links in results
rows: rows:
selector: table[border="1"][cellspacing="0"][cellpadding="5"] > tbody > tr:has(a[href^="details.php?id="]) selector: "table[border=1][cellspacing=0][cellpadding=5] > tbody > tr:has(a[href^=\"details.php?id=\"]){{ if .Config.freeleech }}:has(img[src=\"pic/freedownload.gif\"]){{ else }}{{ end }}"
fields: fields:
category: category:
@ -165,4 +170,6 @@ search:
img[src="icon/upl2.png"]: 2 img[src="icon/upl2.png"]: 2
img[src="icon/upl3.png"]: 3 img[src="icon/upl3.png"]: 3
"*": 1 "*": 1
minimumratio:
text: 1.0
# Bitcomet 1.52 # Bitcomet 1.52