mirror of
https://github.com/Jackett/Jackett
synced 2025-02-26 16:12:55 +00:00
tribalmixes: add config sort options
This commit is contained in:
parent
af32e419ae
commit
bc88f98cf4
1 changed files with 30 additions and 4 deletions
|
@ -37,6 +37,30 @@
|
|||
search: [q]
|
||||
music-search: [q, album, artist, label, year]
|
||||
|
||||
settings:
|
||||
- name: username
|
||||
type: text
|
||||
label: Username
|
||||
- name: password
|
||||
type: password
|
||||
label: Password
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "_"
|
||||
options:
|
||||
"_": "created"
|
||||
"8": "seeders"
|
||||
"6": "size"
|
||||
"1": "title"
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: "desc"
|
||||
options:
|
||||
"desc": "desc"
|
||||
"asc": "asc"
|
||||
|
||||
login:
|
||||
path: takelogin.php
|
||||
method: post
|
||||
|
@ -54,8 +78,12 @@
|
|||
- path: browse.php
|
||||
inputs:
|
||||
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
|
||||
sort: "{{ re_replace .Config.sort \"_\" \"\" }}"
|
||||
type: "{{ .Config.type }}"
|
||||
|
||||
rows:
|
||||
selector: div.row:has(a[href^="/download.php?id="])
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: a[href^="/browse.php?cat="]
|
||||
|
@ -96,8 +124,6 @@
|
|||
- name: regexp
|
||||
args: "shared (.+?)<"
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
"*": "1"
|
||||
text: 1
|
||||
uploadvolumefactor:
|
||||
case:
|
||||
"*": "1"
|
||||
text: 1
|
||||
|
|
Loading…
Reference in a new issue