torrentland: add freeleech filter #9456

add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-09-15 18:38:07 +12:00
parent b757e01641
commit 8741a7cacd
1 changed files with 15 additions and 5 deletions

View File

@ -98,6 +98,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
@ -139,17 +143,18 @@ search:
inputs: inputs:
page: torrents page: torrents
$raw: "category={{ range .Categories }}{{.}};{{end}}" $raw: "category={{ range .Categories }}{{.}};{{end}}"
# 0 filename 1 file&dsc 2 descr 5 gold 6 silver 7 bronze # 0 filename, 1 file&descr, 2 descr, 5 gold, 6 silver, 7 bronze
options: "{{ if .Query.IMDBID }}2{{else}}0{{end}}" # note: if option=5 then you cant also filter for titles or imdb.
# 0 all 1 active 2 dead options: "{{ if .Query.IMDBID }}2{{ else }}0{{ end }}"
# 0 all, 1 active, 2 dead
active: 0 active: 0
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
order: "{{ .Config.sort }}" order: "{{ .Config.sort }}"
by: "{{ .Config.type }}" by: "{{ .Config.type }}"
# does not return imdb link in results # does not return imdb link in results
rows: rows:
selector: "#Mcol table.table-inverse ~ table.table-inverse > tbody > tr:has(a[href^=\"index.php?page=torrent-details\"])" selector: "#Mcol table.table-inverse ~ table.table-inverse > tbody > tr{{ if .Config.freeleech }}[style=\"background: #f9e5a5\"]{{ else }}{{ end }}:has(a[href^=\"index.php?page=torrent-details\"])"
fields: fields:
category: category:
@ -240,4 +245,9 @@ search:
img[src$="6x.gif"]: 6 img[src$="6x.gif"]: 6
img[src$="7x.gif"]: 7 img[src$="7x.gif"]: 7
"*": 1 "*": 1
minimumratio:
text: 1.0
minimumseedtime:
# 4 days (as seconds = 4 x 24 x 60 x 60)
text: 345600
# xbtit customised # xbtit customised