torrentsectorcrew: add freeleech filter #9456

add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-09-15 15:02:48 +12:00
parent a6b582f6ff
commit 36f8b962a3
1 changed files with 11 additions and 3 deletions

View File

@ -90,6 +90,10 @@ settings:
- name: pin
type: text
label: Pin
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: info_results
type: info
label: "Search results"
@ -147,7 +151,7 @@ search:
sort: "{{ .Config.type }}"
rows:
selector: table.tablebrowse > tbody > tr:has(a[href^="download_ssl.php"])
selector: "table.tablebrowse > tbody > tr:has(a[href^=\"download_ssl.php\"]){{ if .Config.freeleech }}:has(font[color=\"#730d1e\"]:contains(\"[OnlyUpload]\")){{ else }}{{ end }}"
fields:
title:
@ -204,6 +208,10 @@ search:
"font[color=\"#730d1e\"]:contains(\"[OnlyUpload]\")": 0
"*": 1
uploadvolumefactor:
case:
"*": 1
text: 1
minimumratio:
text: 0.7
minimumseedtime:
# 2 days (as seconds = 2 x 24 x 60 x 60)
text: 172800
# engine n/a