mirror of
https://github.com/Jackett/Jackett
synced 2025-02-26 16:12:55 +00:00
sportscult: add config sort options
This commit is contained in:
parent
cbb338a52e
commit
6e71e32185
1 changed files with 32 additions and 5 deletions
|
@ -62,6 +62,30 @@
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
|
||||||
|
settings:
|
||||||
|
- name: username
|
||||||
|
type: text
|
||||||
|
label: Username
|
||||||
|
- name: password
|
||||||
|
type: password
|
||||||
|
label: Password
|
||||||
|
- name: sort
|
||||||
|
type: select
|
||||||
|
label: Sort requested from site
|
||||||
|
default: "3"
|
||||||
|
options:
|
||||||
|
"3": "created"
|
||||||
|
"5": "seeders"
|
||||||
|
"4": "size"
|
||||||
|
"2": "title"
|
||||||
|
- name: type
|
||||||
|
type: select
|
||||||
|
label: Order requested from site
|
||||||
|
default: "2"
|
||||||
|
options:
|
||||||
|
"2": "desc"
|
||||||
|
"1": "asc"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: ?page=login
|
path: ?page=login
|
||||||
method: form
|
method: form
|
||||||
|
@ -78,13 +102,17 @@
|
||||||
paths:
|
paths:
|
||||||
- path: index.php
|
- path: index.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
|
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
|
||||||
search: "{{ .Query.Keywords }}"
|
search: "{{ .Keywords }}"
|
||||||
page: torrents
|
page: torrents
|
||||||
category: 0
|
category: 0
|
||||||
active: 1
|
active: 1
|
||||||
|
order: "{{ .Config.sort }}"
|
||||||
|
by: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table[cellspacing!="1"].lista > tbody > tr:has(a[href^="index.php?page=torrents&category="])
|
selector: table[cellspacing!="1"].lista > tbody > tr:has(a[href^="index.php?page=torrents&category="])
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
selector: a[href^="index.php?page=torrents&category="]
|
selector: a[href^="index.php?page=torrents&category="]
|
||||||
|
@ -100,7 +128,6 @@
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["( \\| )+", " "]
|
args: ["( \\| )+", " "]
|
||||||
download:
|
download:
|
||||||
# download.php?id=fb27625a0543ed731f7b3505beebf4c8d530f8f9&f=IIHF+2019-05-26+%7C+Gold+Medal+%7C+Canada+vs+Finland+%7C+1080p+EN.torrent
|
|
||||||
selector: a[href^="download.php?id="]
|
selector: a[href^="download.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
filters:
|
filters:
|
||||||
|
@ -125,7 +152,7 @@
|
||||||
args: "02/01/2006"
|
args: "02/01/2006"
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
"*": "1"
|
"*": 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
case:
|
case:
|
||||||
"*": "1"
|
"*": 1
|
Loading…
Reference in a new issue