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 - name: pin
type: text type: text
label: Pin label: Pin
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: info_results - name: info_results
type: info type: info
label: "Search results" label: "Search results"
@ -147,7 +151,7 @@ search:
sort: "{{ .Config.type }}" sort: "{{ .Config.type }}"
rows: 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: fields:
title: title:
@ -204,6 +208,10 @@ search:
"font[color=\"#730d1e\"]:contains(\"[OnlyUpload]\")": 0 "font[color=\"#730d1e\"]:contains(\"[OnlyUpload]\")": 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1 minimumratio:
text: 0.7
minimumseedtime:
# 2 days (as seconds = 2 x 24 x 60 x 60)
text: 172800
# engine n/a # engine n/a