channelx: add config sort option

This commit is contained in:
Garfield69 2019-12-14 20:08:49 +13:00
parent f7bb02f618
commit 987ea6325e
1 changed files with 29 additions and 4 deletions

View File

@ -20,6 +20,30 @@
tv-search: [q, season, ep, imdbid] tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid] movie-search: [q, imdbid]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "created_at"
options:
"created_at": "created"
"seeders": "seeders"
"size": "size"
"name": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: login path: login
method: form method: form
@ -46,8 +70,8 @@
paths: paths:
- path: torrents/filter - path: torrents/filter
inputs: inputs:
$raw: "{{range .Categories}}categories[]={{.}}&{{end}}" $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
search: "{{if .Query.IMDBID}}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
description: "" description: ""
uploader: "" uploader: ""
imdb: "{{ .Query.IMDBIDShort }}" imdb: "{{ .Query.IMDBIDShort }}"
@ -55,8 +79,9 @@
tmdb: "" tmdb: ""
mal: "" mal: ""
igdb: "" igdb: ""
sort: created_at sorting: "{{ .Config.sort }}"
direction: desc sort: "{{ .Config.sort }}"
direction: "{{ .Config.type }}"
qty: 100 qty: 100
rows: rows:
selector: table > tbody > tr selector: table > tbody > tr