proaudiotorrents: add config sort options

This commit is contained in:
Garfield69
2019-12-19 16:17:48 +13:00
parent 386090b9c3
commit a2d5fdbcec

View File

@@ -38,6 +38,30 @@
modes:
search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "added"
options:
"added": "created"
"seeders": "seeders"
"size": "size"
"name": "title"
- name: type
type: select
label: Order requested from site
default: "down"
options:
"down": "desc"
"up": "asc"
login:
path: login.php
method: form
@@ -56,10 +80,12 @@
- path: browse.php
inputs:
# does not appear to support multi category searches
cat: "0"
search: "{{.Keywords}}"
searchin: "0"
incldead: "1"
cat: 0
search: "{{ .Keywords }}"
searchin: 0
incldead: 1
sort: "{{ .Config.sort }}"
d: "{{ .Config.type }}"
rows:
selector: tr.ttable:has(a[href^="browse.php?cat="])
fields:
@@ -87,15 +113,15 @@
selector: td:nth-child(6)
filters:
- name: regexp
args: ([\d,]+)
args: (\d+)
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor:
text: "1"
text: 1
uploadvolumefactor:
text: "1"
text: 1
date:
selector: td:nth-child(2)
remove: a