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