turktorrent: add freeleech filter #9456

update dlvf and ulvf detection
add minimumratio
This commit is contained in:
Garfield69 2020-09-16 08:03:20 +12:00
parent d2efdf732e
commit f8c34e4c72
1 changed files with 10 additions and 4 deletions

View File

@ -81,6 +81,10 @@ settings:
type: info
label: Layout
default: "<ol><li>Only the English Classic profile is supported.<li>Make sure to set the <b>Torrent Listing (Listeleme Biçimi)</b> option in your profile to <b>Classic (Klasik)</b><li>And set the <b>Language (Dil)</b> to <b>English</b><li>Using the <i>Modern</i> theme will prevent results, and using <i>Turkish</i> will prevent upload dates.</ol>"
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
@ -134,7 +138,7 @@ search:
"sortOptions[sortOrder]": "{{ .Config.type }}"
rows:
selector: table#torrents_table_classic > tbody > tr:has(td.torrent_name)
selector: "table#torrents_table_classic > tbody > tr:has(td.torrent_name){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
fields:
category:
@ -194,11 +198,13 @@ search:
attribute: href
downloadvolumefactor:
case:
"img[title=\"FREE!\"]": 0
"img[title=\"Download Multiplier: 0.5\"]": 0.5
"img[src$=\"/freedownload.gif\"]": 0
"img[src$=\"/silverdownload.gif\"]": 0.5
"*": 1
uploadvolumefactor:
case:
"img[title=\"Upload Multiplier: 2\"]": 2
"img[src$=\"/torrent_x2.png\"]": 2
"*": 1
minimumratio:
text: 0.5
# TSUE 2.2