mirror of https://github.com/Jackett/Jackett
rus-media: size/seeders/leechers can be missing. resolves #6603
also add config sort option.
This commit is contained in:
parent
d1ac466974
commit
66927a7020
|
@ -275,7 +275,23 @@
|
|||
modes:
|
||||
search: [q]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "t"
|
||||
options:
|
||||
"t": "created"
|
||||
"ts": "seeders"
|
||||
"sz": "size"
|
||||
"i": "title"
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: "d"
|
||||
options:
|
||||
"d": "desc"
|
||||
"a": "asc"
|
||||
|
||||
download:
|
||||
selector: a[href^="./download/file.php?id="]
|
||||
|
@ -290,10 +306,13 @@
|
|||
fp: 1
|
||||
tracker_search: torrent
|
||||
keywords: "{{if .Keywords }}{{.Keywords}}{{else}}2019{{end}}"
|
||||
sk: "{{ .Config.sort }}"
|
||||
sd: "{{ .Config.type }}"
|
||||
$raw: "{{range .Categories}}&fid[]={{.}}{{end}}"
|
||||
|
||||
rows:
|
||||
selector: table.tablebg tr.col_line
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: a[href^="./viewtopic.php?f="]
|
||||
|
@ -310,7 +329,10 @@
|
|||
selector: a.topictitle
|
||||
attribute: href
|
||||
size:
|
||||
selector: td:nth-of-type(5) p
|
||||
text: "0 B"
|
||||
size:
|
||||
selector: td:nth-of-type(5) p:not(:empty)
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["ТБ", "TB"]
|
||||
|
@ -320,10 +342,16 @@
|
|||
args: ["МБ", "MB"]
|
||||
- name: replace
|
||||
args: ["КБ", "KB"]
|
||||
seeders:
|
||||
text: 0
|
||||
seeders:
|
||||
selector: span.seed
|
||||
optional: true
|
||||
leechers:
|
||||
text: 0
|
||||
leechers:
|
||||
selector: span.leech
|
||||
optional: true
|
||||
date:
|
||||
# Сегодня, 03:04
|
||||
# Вчера, 22:47
|
||||
|
@ -369,6 +397,6 @@
|
|||
- name: dateparse
|
||||
args: "02 Jan 2006 15:04"
|
||||
downloadvolumefactor:
|
||||
text: "0"
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: "1"
|
||||
text: 1
|
||||
|
|
Loading…
Reference in New Issue