rockbox: add config sort options

This commit is contained in:
Garfield69
2019-12-20 10:50:28 +13:00
parent b91c01ba4c
commit 8c37db63f7

View File

@@ -16,6 +16,30 @@
search: [q]
music-search: [q, album, artist, label, year]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "data"
options:
"data": "created"
"seeds": "seeders"
"size": "size"
"filename": "title"
- name: type
type: select
label: Order requested from site
default: "DESC"
options:
"DESC": "desc"
"ASC": "asc"
login:
path: login.php
method: form
@@ -34,11 +58,18 @@
search:
paths:
- path: torrents.php
method: get
inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
# 0 all 1 active 2 dead 3 seedwanted
active: 0
# 0 title 1 title+descr 2 title+subgen
options: 0
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
rows:
selector: table.lista[width="100%"] tbody tr:has(a[href^="download.php?id="])
fields:
title:
selector: td a[href^="details.php?id="]
@@ -74,8 +105,8 @@
grabs:
selector: td:nth-child(11)
category:
text: "Music"
text: Music
downloadvolumefactor:
text: "1"
text: 1
uploadvolumefactor:
text: "1"
text: 1