mirror of
https://github.com/Jackett/Jackett
synced 2025-02-26 16:12:55 +00:00
bittorrentfiles: add config sort option
This commit is contained in:
parent
d5b6a35473
commit
80699db8ae
1 changed files with 27 additions and 9 deletions
|
@ -107,6 +107,22 @@
|
|||
- name: pass
|
||||
type: password
|
||||
label: Password
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "added"
|
||||
options:
|
||||
"added": "created"
|
||||
"seeds": "seeders"
|
||||
"size": "size"
|
||||
"name": "title"
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: "desc"
|
||||
options:
|
||||
"desc": "desc"
|
||||
"asc": "asc"
|
||||
|
||||
login:
|
||||
path: signin.php
|
||||
|
@ -123,12 +139,14 @@
|
|||
search:
|
||||
path: browse.php
|
||||
inputs:
|
||||
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
|
||||
search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{end}}"
|
||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
|
||||
# 0=title 1=descr 2=nfo 3=all
|
||||
search_where: "{{if .Query.IMDBID}}3{{else}}0{{end}}"
|
||||
search_where: "{{ if .Query.IMDBID }}3{{else}}0{{end}}"
|
||||
# 0=active 1=all 2=dead 4=upload 5=doubleup 6=halfdown 7=highlight =request
|
||||
status: 1
|
||||
orderby: "{{ .Config.sort }}"
|
||||
sort: "{{ .Config.type }}"
|
||||
|
||||
rows:
|
||||
selector: table.tableinborder > tbody > tr:has(a[href^="details.php"])
|
||||
|
@ -199,11 +217,11 @@
|
|||
args: "02.01.2006 15:04:05"
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
img[alt="OU"]: "0"
|
||||
img[alt="D/2"]: "0.5"
|
||||
img[alt="D / 2"]: "0.5"
|
||||
"*": "1"
|
||||
img[alt="OU"]: 0
|
||||
img[alt="D/2"]: 0.5
|
||||
img[alt="D / 2"]: 0.5
|
||||
"*": 1
|
||||
uploadvolumefactor:
|
||||
case:
|
||||
img[alt="2xU"]: "2"
|
||||
"*": "1"
|
||||
img[alt="2xU"]: 2
|
||||
"*": 1
|
||||
|
|
Loading…
Reference in a new issue