mirror of
https://github.com/Jackett/Jackett
synced 2025-02-07 23:32:37 +00:00
torrentproject2: add config sort option
This commit is contained in:
parent
c836fa7a74
commit
0b59811c77
1 changed files with 19 additions and 8 deletions
|
@ -43,6 +43,15 @@
|
|||
type: checkbox
|
||||
label: "Only include verifed content in results"
|
||||
default: false
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "latest"
|
||||
options:
|
||||
"latest": "created desc"
|
||||
"oldest": "created asc"
|
||||
"seeders": "seeders"
|
||||
"size": "size"
|
||||
- name: info
|
||||
type: info
|
||||
label: A note about TP2
|
||||
|
@ -58,11 +67,18 @@
|
|||
|
||||
search:
|
||||
paths:
|
||||
- path: "?t={{if .Keywords}}{{.Keywords}}{{else}}test{{end}}&orderby=latest{{if .Config.filter-verified }}&safe=on{{else}}{{end}}"
|
||||
- path: "?t={{ if .Keywords }}{{ .Keywords }}{{else}}test{{end}}&orderby={{ .Config.sort }}{{ if .Config.filter-verified }}&safe=on{{else}}{{end}}"
|
||||
followredirect: true
|
||||
|
||||
rows:
|
||||
selector: "#similarfiles div:has(a[href^=\"/t0-\"])"
|
||||
|
||||
fields:
|
||||
category:
|
||||
text: "Other"
|
||||
category:
|
||||
optional: true
|
||||
selector: div > span:nth-child(1) > span
|
||||
title:
|
||||
selector: span > a
|
||||
details:
|
||||
|
@ -71,11 +87,6 @@
|
|||
download:
|
||||
selector: span > a
|
||||
attribute: href
|
||||
category:
|
||||
text: "Other"
|
||||
category:
|
||||
optional: true
|
||||
selector: div > span:nth-child(1) > span
|
||||
date:
|
||||
selector: div > span:nth-child(4)
|
||||
size:
|
||||
|
@ -85,6 +96,6 @@
|
|||
leechers:
|
||||
selector: div > span:nth-child(3)
|
||||
downloadvolumefactor:
|
||||
text: "0"
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: "1"
|
||||
text: 1
|
Loading…
Reference in a new issue