siambit: add freeleech filter #9456

add minimumratio
This commit is contained in:
Garfield69 2020-09-15 06:33:08 +12:00
parent 24b94622f7
commit 284dc04c88
1 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,10 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- 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
@ -119,11 +123,12 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 name, 1 both, 2 descr
searchin: 0 searchin: 0
sortby: "{{ .Config.sort }}" sortby: "{{ .Config.sort }}"
rows: rows:
selector: table[width="100%"][border="1"][cellspacing="0"][cellpadding="5"] > tbody > tr:has(a[href*="hashinfo="]) selector: "table[width=\"100%\"][border=1][cellspacing=0][cellpadding=5] > tbody > tr:has(a[href*=\"hashinfo=\"]){{ if .Config.freeleech }}:has(td:nth-child(3):contains(\"100%\")){{ else }}{{ end }}"
fields: fields:
title: title:
@ -196,4 +201,6 @@ search:
"td:nth-child(4):contains(\"x8\")": 8 "td:nth-child(4):contains(\"x8\")": 8
"td:nth-child(4):contains(\"x9\")": 9 "td:nth-child(4):contains(\"x9\")": 9
"*": 1 "*": 1
minimumratio:
text: 1.0
# engine n/a # engine n/a