Skip to content

Commit

Permalink
turktorrent: add freeleech filter #9456
Browse files Browse the repository at this point in the history
update dlvf and ulvf detection
add minimumratio
  • Loading branch information
garfield69 committed Sep 15, 2020
1 parent d2efdf7 commit f8c34e4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Jackett.Common/Definitions/turktorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit f8c34e4

Please sign in to comment.