1
0
Fork 0
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:
Garfield69 2019-12-21 15:36:41 +13:00
parent 8f18304257
commit 3d582fe851

View file

@ -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^="/"]