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
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
@ -119,11 +123,12 @@ search:
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 name, 1 both, 2 descr
searchin: 0
sortby: "{{ .Config.sort }}"
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:
title:
@ -196,4 +201,6 @@ search:
"td:nth-child(4):contains(\"x8\")": 8
"td:nth-child(4):contains(\"x9\")": 9
"*": 1
minimumratio:
text: 1.0
# engine n/a