estone: add freeleech filter #9456

add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-09-12 09:46:55 +12:00
parent f4e99a18e6
commit 420b9672cd
1 changed files with 11 additions and 2 deletions

View File

@ -46,6 +46,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
@ -87,14 +91,14 @@ search:
inputs:
$raw: "{{ range .Categories }}kat[]={{.}}&{{end}}{{ .Config.sort }}={{ .Config.type }}"
kereses_nev: "{{ .Keywords }}"
# 0 name 1 performer 2 director
# 0 name, 1 performer, 2 director
miben: 0
# genre
cimke: ""
# does not support imdbid search and does not return imdb link in results
rows:
selector: body > div[id^="torrent_"]
selector: "body > div[id^=\"torrent_\"]{{ if .Config.freeleech }}:has(img[src=\"pic/free.png\"]){{ else }}{{ end }}"
fields:
title:
@ -151,4 +155,9 @@ search:
description:
selector: div:nth-child(2)
remove: a
minimumratio:
text: 1.0
minimumseedtime:
# 1 day (as seconds = 24 x 60 x 60)
text: 86400
# engine n/a