pwtorrents: add freeleech filter #9456

update dlvf and ulvf
add minimumratio
This commit is contained in:
Garfield69 2020-09-14 21:27:31 +12:00
parent 8528383d74
commit fe9700e032
1 changed files with 17 additions and 4 deletions

View File

@ -42,6 +42,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: seedbox
type: checkbox
label: "Use SeedBox Download Link"
@ -88,7 +92,8 @@ search:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
incldead: "1"
# 0 active, 1 incldead, 2 onlydead, 3 freeleech
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
search: "{{ .Keywords }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
@ -115,7 +120,7 @@ search:
selector: a[href^="seeddownload.php?id="]
attribute: href
download:
text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{else}}{{ .Result.download1 }}{{end}}"
text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
date:
selector: td:nth-child(4)
filters:
@ -133,7 +138,15 @@ search:
leechers:
selector: td:nth-child(10)
downloadvolumefactor:
text: 1
case:
img[src="pic/freeleech.png"]: 0
"*": 1
uploadvolumefactor:
text: 1
case:
img[src="gold.png"]: 2
img[src="silver.png"]: 1.5
img[src="bronze.png"]: 1.25
"*": 1
minimumratio:
text: 0.7
# engine n/a