mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
torrentdownload: add config sort option
This commit is contained in:
parent
8f18304257
commit
3d582fe851
1 changed files with 12 additions and 2 deletions
|
@ -24,16 +24,26 @@
|
|||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site (Applies only to Search with Keywords)
|
||||
default: "d"
|
||||
options:
|
||||
"d": "created"
|
||||
"s": "seeders"
|
||||
"_": "size"
|
||||
|
||||
download:
|
||||
selector: a[href^="magnet:?xt="]
|
||||
|
||||
search:
|
||||
paths:
|
||||
- path: "{{if .Keywords}}searchd?q={{ .Keywords}}{{else}}latest{{end}}"
|
||||
- path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{else}}latest{{end}}"
|
||||
|
||||
rows:
|
||||
selector: table.table2 > tbody > tr:has(span.smallish)
|
||||
|
||||
fields:
|
||||
title:
|
||||
selector: div.tt-name > a[href^="/"]
|
||||
|
|
Loading…
Add table
Reference in a new issue