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 - name: password
type: password type: password
label: Password label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -110,13 +114,13 @@ search:
pid: 10 pid: 10
$raw: "{{ range .Categories }}&cid[]={{.}}{{end}}" $raw: "{{ range .Categories }}&cid[]={{.}}{{end}}"
keywords: "{{ .Keywords }}" keywords: "{{ .Keywords }}"
# name description both uploader # name, description, both, uploader
search_type: name search_type: name
"sortOptions[sortBy]": "{{ .Config.sort }}" "sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}" "sortOptions[sortOrder]": "{{ .Config.type }}"
rows: 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: fields:
title: title:
@ -172,4 +176,6 @@ search:
uploadvolumefactor: uploadvolumefactor:
case: case:
"*": 1 "*": 1
minimumratio:
text: 1.0
# TSUE 2.2 # TSUE 2.2