ztracker: size can be mising

add config sort options
This commit is contained in:
Garfield69 2019-12-22 10:23:44 +13:00
parent 4f2ef558ad
commit 92946670b6
1 changed files with 40 additions and 8 deletions

View File

@ -52,6 +52,30 @@
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-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: belepes.php path: belepes.php
method: form method: form
@ -65,7 +89,8 @@
selector: table:has(img[src="/pic/ts_error/error.jpg"]) selector: table:has(img[src="/pic/ts_error/error.jpg"])
remove: style remove: style
test: test:
path: browse_old.php path: index.php
selector: a[href*="/logout.php?logouthash="]
search: search:
paths: paths:
@ -76,9 +101,13 @@
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
keywords: "{{ .Keywords }}" keywords: "{{ .Keywords }}"
search_type: "t_name" search_type: t_name
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: table[border="1"] > tbody > tr:has(a[href*="details.php?id="]) selector: table[border="1"] > tbody > tr:has(a[href*="details.php?id="])
fields: fields:
title: title:
selector: a[href*="details.php?id="][onmouseover] selector: a[href*="details.php?id="][onmouseover]
@ -114,16 +143,19 @@
files: files:
selector: td:nth-child(5) selector: td:nth-child(5)
size: size:
selector: td:nth-child(11) text: 0
size:
selector: td:nth-child(11):has(b)
optional: true
remove: b remove: b
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src="./pic/freedownload.gif"]: "0" img[src="./pic/freedownload.gif"]: 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
img[src="./pic/x2.gif"]: "2" img[src="./pic/x2.gif"]: 2
"*": "1" "*": 1
date: date:
selector: td:nth-child(2) selector: td:nth-child(2)
remove: a, img remove: a, img