learnflakes: add freeleech filter #9456

add minimumratio
This commit is contained in:
Garfield69 2020-09-13 11:55:52 +12:00
parent cb91875849
commit 251b89f72e
1 changed files with 8 additions and 2 deletions

View File

@ -50,6 +50,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
@ -110,13 +114,13 @@ search:
pid: 10
$raw: "{{ range .Categories }}&cid[]={{.}}{{end}}"
keywords: "{{ .Keywords }}"
# name description both uploader
# name, description, both, uploader
search_type: name
"sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}"
rows:
selector: div.torrent-box[id^="torrent_"]
selector: "div.torrent-box[id^=\"torrent_\"]{{ if .Config.freeleech }}:has(img[src$=\"/torrent_free.png\"]){{ else }}{{ end }}"
fields:
title:
@ -172,4 +176,6 @@ search:
uploadvolumefactor:
case:
"*": 1
minimumratio:
text: 1.0
# TSUE 2.2