From f8c34e4c722917585699197d9d918e7af0ce772c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 16 Sep 2020 08:03:20 +1200 Subject: [PATCH] turktorrent: add freeleech filter #9456 update dlvf and ulvf detection add minimumratio --- src/Jackett.Common/Definitions/turktorrent.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/turktorrent.yml b/src/Jackett.Common/Definitions/turktorrent.yml index d32594569..aa3cff369 100644 --- a/src/Jackett.Common/Definitions/turktorrent.yml +++ b/src/Jackett.Common/Definitions/turktorrent.yml @@ -81,6 +81,10 @@ settings: type: info label: Layout default: "
  1. Only the English Classic profile is supported.
  2. Make sure to set the Torrent Listing (Listeleme Biçimi) option in your profile to Classic (Klasik)
  3. And set the Language (Dil) to English
  4. Using the Modern theme will prevent results, and using Turkish will prevent upload dates.
" + - 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