legittorrents: add config sort options

This commit is contained in:
Garfield69
2019-12-17 20:46:08 +13:00
parent a16f4b1906
commit cc7bbcc022

View File

@@ -25,20 +25,38 @@
modes: modes:
search: [q] search: [q]
settings: [] settings:
- name: sort
type: select
label: Sort requested from site
default: "3"
options:
"3": "created"
"5": "seeders"
"2": "title"
- name: type
type: select
label: Order requested from site
default: "2"
options:
"2": "desc"
"1": "asc"
search: search:
paths: paths:
# http://www.legittorrents.info/index.php?page=torrents&search=windows&category=0&active=0 # http://www.legittorrents.info/index.php?page=torrents&search=windows&category=0&active=0
- path: index.php - path: index.php
inputs: inputs:
page: "torrents" page: torrents
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "{{range .Categories}}{{.}};{{end}}" category: "{{ range .Categories }}{{.}};{{end}}"
# 0 all 1 active 2 deadonly # 0 all 1 active 2 deadonly
active: 1 active: 1
rows: rows:
selector: table table table.lista > tbody > tr:has(a[href^="download.php?id="]) selector: table table table.lista > tbody > tr:has(a[href^="download.php?id="])
fields: fields:
category: category:
selector: a[href^="index.php?page=torrents&category="] selector: a[href^="index.php?page=torrents&category="]