ztracker: code tidy

This commit is contained in:
Garfield69
2020-11-05 18:13:54 +13:00
parent 3c09866dc2
commit 65c6aa584b

View File

@@ -64,19 +64,19 @@ settings:
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
default: "4" default: 4
options: options:
"4": "created" 4: created
"7": "seeders" 7: seeders
"5": "size" 5: size
"1": "title" 1: title
- name: type - name: type
type: select type: select
label: Order requested from site label: Order requested from site
default: "desc" default: desc
options: options:
"desc": "desc" desc: desc
"asc": "asc" asc: asc
login: login:
path: belepes.php path: belepes.php
@@ -113,12 +113,27 @@ search:
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:
category:
selector: a[href^="/browse_old.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title: title:
selector: a[href*="details.php?id="][onmouseover] selector: a[href*="details.php?id="][onmouseover]
attribute: onmouseover attribute: onmouseover
filters: filters:
- name: regexp - name: regexp
args: <font class=\\'smalltext\\'>(.*?)</font> args: <font class=\\'smalltext\\'>(.*?)</font>
details:
selector: a[href*="details.php?id="][onmouseover]
attribute: href
download:
selector: a[href*="details.php?id="]
attribute: href
filters:
- name: replace
args: ["details.php", "download.php"]
banner: banner:
selector: a[href*="details.php?id="][onmouseover] selector: a[href*="details.php?id="][onmouseover]
attribute: onmouseover attribute: onmouseover
@@ -129,25 +144,6 @@ search:
optional: true optional: true
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
details:
selector: a[href*="details.php?id="][onmouseover]
attribute: href
category:
selector: a[href^="/browse_old.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
download:
selector: a[href*="details.php?id="]
attribute: href
filters:
- name: replace
args: ["details.php", "download.php"]
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
files: files:
selector: td:nth-child(5) selector: td:nth-child(5)
size: size:
@@ -156,6 +152,10 @@ search:
selector: td:nth-child(11):has(b) selector: td:nth-child(11):has(b)
optional: true optional: true
remove: b remove: b
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src="./pic/freedownload.gif"]: 0 img[src="./pic/freedownload.gif"]: 0