ebookparadijs: fix login error selector

also fix leechers selector
This commit is contained in:
Garfield69 2019-12-16 15:33:47 +13:00
parent ff1a51b698
commit b9e219d866
1 changed files with 12 additions and 10 deletions

View File

@ -39,7 +39,7 @@
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: table[border="0"][cellspacing="0"][cellpadding="10"] tr td font[color="yellow"]
- selector: table[border="0"][cellspacing="0"][cellpadding="10"] tr td font[color="orange"]
test:
path: /
selector: :has(a[href="logout.php"])
@ -48,13 +48,15 @@
paths:
- path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{.Keywords}}"
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
incldead: 1
rows:
selector: table.mainouter
filters:
- name: andmatch
fields:
category:
selector: a[href^="browse.php?cat="]
@ -85,12 +87,12 @@
selector: td:nth-child(4) table tr td:nth-child(2)
filters:
- name: regexp
args: "in (\\d{1,}) bestan"
args: "in (\\d+) bestan"
grabs:
selector: td:nth-child(4) table tr:nth-child(2) td:nth-child(1)
filters:
- name: regexp
args: "(\\d{1,})"
args: (\d+)
date:
selector: td:nth-child(4) table tr:nth-child(2) td:last-child
filters:
@ -123,18 +125,18 @@
- name: dateparse
args: "2 January 2006 15:04:05"
seeders:
text: "0"
text: 0
seeders:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) b:nth-child(1)
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font b
leechers:
text: "0"
text: 0
leechers:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) b:nth-child(2)
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font font b
downloadvolumefactor:
case:
img[src="pic/freedlfsu.gif"]: 0
"*": 1
uploadvolumefactor:
text: "1"
text: 1