galeriens: add freeleech filter #9456

also add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-09-12 16:00:35 +12:00
parent 6b6b811c35
commit 5bf45b8ef0
1 changed files with 19 additions and 24 deletions

View File

@ -183,12 +183,6 @@ caps:
music-search: [q]
settings:
# - name: username
# type: text
# label: Username
# - name: password
# type: password
# label: Password
- name: cookie
type: text
label: Cookie
@ -196,7 +190,10 @@ settings:
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: torrentlanguage
type: select
label: Torrent Language
@ -229,13 +226,6 @@ settings:
"23": "Ukrainien"
login:
# path: TTV3/Connexion
# method: post
# inputs:
# username: "{{ .Config.username }}"
# password: "{{ .Config.password }}"
# error:
# - selector: font[color="red"]
method: cookie
inputs:
cookie: "{{ .Config.cookie }}"
@ -254,15 +244,15 @@ search:
- path: TTV3/Torrents/Recherche
inputs:
recherche: "{{ .Keywords }}"
# searchtype un (one word) tout (all words) exacte (exact expression)
type: "tout"
# searchin nomtorrent (name) or desctorrent (descr)
endroit: "nomtorrent"
# language 11 french 17 multi
# searchtype: un (one word), tout (all words), exacte (exact expression)
type: tout
# searchin: nomtorrent (name), desctorrent (descr)
endroit: nomtorrent
# language: 11 french, 17 multi
langue: "{{ .Config.torrentlanguage }}"
# freeleech oui (yes) non (no) peuimporte (ignore)
tl: "peuimporte"
# does bot support imdbid search and does not return imdb link in results.
# freeleech: oui (yes), non (no), peuimporte (ignore)
tl: "{{ if .Config.freeleech }}oui{{ else }}peuimporte{{ end }}"
# does not support imdbid search and does not return imdb link in results.
rows:
selector: table.sortable tbody tr
@ -322,8 +312,13 @@ search:
args: " ago"
downloadvolumefactor:
case:
img[src$="/images/Torrents/TLibre.png"]: "0"
"*": "1"
img[src$="/images/Torrents/TLibre.png"]: 0
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 1.0
minimumseedtime:
# 2 days (as seconds = 2 x 24 x 60 x 60)
text: 172800
# TT3.00 FRENCH