mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentdownload: add config sort option
This commit is contained in:
@@ -24,16 +24,26 @@
|
|||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
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:
|
download:
|
||||||
selector: a[href^="magnet:?xt="]
|
selector: a[href^="magnet:?xt="]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: "{{if .Keywords}}searchd?q={{ .Keywords}}{{else}}latest{{end}}"
|
- path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{else}}latest{{end}}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table.table2 > tbody > tr:has(span.smallish)
|
selector: table.table2 > tbody > tr:has(span.smallish)
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
selector: div.tt-name > a[href^="/"]
|
selector: div.tt-name > a[href^="/"]
|
||||||
|
Reference in New Issue
Block a user