rns: add config sort options

This commit is contained in:
Garfield69
2019-12-20 10:41:27 +13:00
parent f14831cb74
commit b91c01ba4c

View File

@@ -88,6 +88,30 @@
modes: modes:
search: [q] 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: "4"
options:
"4": "created"
"7": "seeders"
"5": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: login.php path: login.php
method: form method: form
@@ -110,7 +134,7 @@
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# title descr all # title descr all
searchin: title searchin: title
@@ -118,6 +142,8 @@
incldead: 0 incldead: 0
# 0 incl vip 1 no vip 2 only vip # 0 incl vip 1 no vip 2 only vip
vip: 0 vip: 0
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: tr.browse_color, tr.freeleech_color selector: tr.browse_color, tr.freeleech_color
@@ -169,7 +195,7 @@
selector: td:nth-of-type(8) a selector: td:nth-of-type(8) a
filters: filters:
- name: regexp - name: regexp
args: "([\\d]+)" args: (\d+)
seeders: seeders:
selector: td:nth-of-type(9) selector: td:nth-of-type(9)
leechers: leechers: