zelkaorg: fix date parsing

add date TZ
code tidy
This commit is contained in:
Garfield69 2020-10-24 21:54:21 +13:00
parent 19b765bdf9
commit d87d3e7bed
1 changed files with 11 additions and 5 deletions

View File

@ -89,10 +89,12 @@ search:
- path: browse.php
inputs:
$raw: "{{range .Categories}}cat{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
search: "{{ .Keywords }}"
incldead: 1
rows:
selector: .test > tbody > tr:has(a[href^="browse.php"])
fields:
title:
selector: a:has(img[src$="/pic/download.gif"])
@ -124,10 +126,13 @@ search:
size:
selector: td:nth-child(6)
date:
# 2020-10-2411:18:30
selector: td:nth-child(5)
filters:
- name: regexp
args: ([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))
- name: append
args: " +02:00" # EET
- name: dateparse
args: "2006-01-0215:04:05 -07:00"
seeders:
selector: td:nth-child(8)
leechers:
@ -141,6 +146,7 @@ search:
downloadvolumefactor:
case:
"a[style=\"color: #b9a100;\"][href^=\"details.php?\"]": "0"
"*": "1"
*: 1
uploadvolumefactor:
text: "1"
text: 1
# engine tbd