empornium: add freeleech filter #9456

This commit is contained in:
Garfield69
2020-09-12 09:31:19 +12:00
parent bdc8792db4
commit f4e99a18e6
2 changed files with 28 additions and 6 deletions

View File

@@ -66,6 +66,18 @@ caps:
tv-search: [q]
movie-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
login:
path: login
method: form
@@ -85,11 +97,14 @@ search:
- path: torrents.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
searchtext: ""
title: "{{ .Keywords }}"
order_by: time
order_way: desc
action: basic
searchsubmit: 1
action: advanced
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
filelist: ""
taglist: ""
rows:
# exclude redbar torrents
@@ -147,4 +162,4 @@ search:
"*": 1
uploadvolumefactor:
text: 1
# luminance
# Luminance

View File

@@ -71,7 +71,11 @@ 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>"
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
login:
method: cookie
@@ -86,11 +90,14 @@ search:
- path: torrents.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
searchtext: ""
title: "{{ .Keywords }}"
order_by: time
order_way: desc
action: basic
searchsubmit: 1
action: advanced
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
filelist: ""
taglist: ""
rows:
# exclude redbar torrents