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]
|
||||
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^="/"]
|
||||
|
Reference in New Issue
Block a user