turkseed:: add freeleech filter #9456

add minimumratio
This commit is contained in:
Garfield69 2020-09-16 07:44:17 +12:00
parent 83d6ceacb8
commit d2efdf732e
1 changed files with 10 additions and 4 deletions

View File

@ -52,6 +52,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: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
@ -91,9 +95,9 @@ search:
- path: browse.php
inputs:
do: search
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# t_name T_description t_both t_uploader t_genre
search_type: "{{ if .Query.IMDBID }}t_genre{{else}}t_name{{end}}"
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# t_name, t_description, t_both, t_uploader, t_genre
search_type: "{{ if .Query.IMDBID }}t_genre{{ else }}t_name{{ end }}"
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}"
include_dead_torrents: yes
sort: "{{ .Config.sort }}"
@ -101,7 +105,7 @@ search:
# does not return imdb link in results
rows:
selector: table.sortable tr:has(a[href*="/download.php?id="])
selector: "table.sortable tr:has(a[href*=\"/download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
fields:
category:
@ -150,4 +154,6 @@ search:
case:
img[src$="/x2.gif"]: 2
"*": 1
minimumratio:
text: 0.6
# TS Special Edition v.7.5