torrentturk: add freeleech filter #9456

add minimumratio
This commit is contained in:
Garfield69 2020-09-15 15:17:46 +12:00
parent 36f8b962a3
commit 0e0a1f7cd4
1 changed files with 8 additions and 2 deletions

View File

@ -71,6 +71,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: info
type: info
label: Layout
@ -128,8 +132,8 @@ search:
pid: 32
$raw: "{{ range .Categories }}cid[]={{.}}&{{end}}"
keywords: "{{ .Keywords }}"
# name, description, both, uploader
search_type: name
searchin: title
"sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}"
error:
@ -137,7 +141,7 @@ search:
# does not support imdbid search and does not return imdb link in results.
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[title=\"FREE!\"]){{ else }}{{ end }}"
fields:
title:
@ -195,4 +199,6 @@ search:
case:
"img[title=\"Upload Multiplier: 2\"]": 2
"*": 1
minimumratio:
text: 0.5
# TSUE 2.2