mirror of
https://github.com/Jackett/Jackett
synced 2025-02-12 17:44:42 +00:00
exttorrents: add config sort options
This commit is contained in:
parent
77df49f76e
commit
39b5a9df76
1 changed files with 22 additions and 4 deletions
|
@ -24,16 +24,34 @@
|
|||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "age"
|
||||
options:
|
||||
"age": "created"
|
||||
"seed": "seeders"
|
||||
"size": "size"
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: "desc"
|
||||
options:
|
||||
"desc": "desc"
|
||||
"asc": "asc"
|
||||
|
||||
|
||||
download:
|
||||
selector: a[href^="magnet:?xt="]
|
||||
|
||||
search:
|
||||
paths:
|
||||
- path: "{{ if .Keywords }}search/?order=age&sort=desc&q={{ .Keywords }}{{ else }}latest/{{ end }}"
|
||||
- path: "{{ if .Keywords }}search/?order={{ .Config.sort }}&sort={{ .Config.type }}&q={{ .Keywords }}{{ else }}latest/?order={{ .Config.sort }}&sort={{ .Config.type }}{{ end }}"
|
||||
|
||||
rows:
|
||||
selector: table.table-striped > tbody > tr
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: td:nth-child(1) div div a
|
||||
|
@ -57,6 +75,6 @@
|
|||
leechers:
|
||||
selector: td:nth-child(6)
|
||||
downloadvolumefactor:
|
||||
text: "0"
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: "1"
|
||||
text: 1
|
||||
|
|
Loading…
Reference in a new issue