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