inionfansub: add config sort options

This commit is contained in:
Garfield69 2019-12-22 08:27:24 +13:00
parent c2123de964
commit 66964f9b58
1 changed files with 37 additions and 8 deletions

View File

@ -31,16 +31,40 @@
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: http://foro.unionfansub.com/member.php path: http://foro.unionfansub.com/member.php
method: post method: post
inputs: inputs:
quick_username: "{{ .Config.username }}" quick_username: "{{ .Config.username }}"
quick_password: "{{ .Config.password }}" quick_password: "{{ .Config.password }}"
action: "do_login" action: do_login
url: "http://torrent.unionfansub.com/browse.php" url: "http://torrent.unionfansub.com/browse.php"
quick_login: "1" quick_login: 1
quick_remember: "yes" quick_remember: yes
error: error:
- selector: div.error - selector: div.error
test: test:
@ -50,11 +74,16 @@
search: search:
path: browse.php path: browse.php
inputs: inputs:
incldead: "0" $raw: "{{ range .Categories }}&c{{.}}=1{{end}}"
search: "{{ .Query.Keywords }}" # 0 active 1 incldead 2 onlydead
$raw: "{{range .Categories}}&c{{.}}=1{{end}}" incldead: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
search: "{{ .Keywords }}"
rows: rows:
selector: .tlist tr:not(:first-child) selector: .tlist tr:not(:first-child)
fields: fields:
title: title:
selector: td:nth-child(2) a selector: td:nth-child(2) a
@ -98,6 +127,6 @@
filters: filters:
- name: timeago - name: timeago
downloadvolumefactor: downloadvolumefactor:
text: "1" text: 1
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1