assorted yml: add date TZ

code tidy
This commit is contained in:
Garfield69 2020-11-17 09:42:22 +13:00
parent 1e63493f7f
commit ca3f756d57
7 changed files with 28 additions and 14 deletions

View File

@ -102,8 +102,10 @@ search:
selector: td:nth-last-child(6):not(:contains("day"))
optional: true
filters:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "Jan 2 2006 03:04 PM"
args: "Jan 2 2006 03:04 PM -07:00"
date:
# Today 02:40 PM
# Yesterday 09:10 AM

View File

@ -157,7 +157,7 @@ search:
selector: h1 > a
attribute: href
size:
text: "500 MB"
text: "512 MB"
seeders:
text: 1
leechers:
@ -170,8 +170,10 @@ search:
# 20/02/2020 18:34
- name: regexp
args: "(\\d{1,2}\\/\\d{2}\\/\\d{4} \\d{1,2}\\:\\d{2})"
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02/01/2006 15:04"
args: "02/01/2006 15:04 -07:00"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View File

@ -100,8 +100,10 @@ search:
selector: span.entry__date:contains("-")
optional: true
filters:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "2-01-2006, 15:04"
args: "2-01-2006, 15:04 -07:00"
size:
text: "1 GB"
seeders:

View File

@ -398,8 +398,10 @@ search:
args: ["дек", "Dec"]
- name: replace
args: [",", ""]
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02 Jan 2006 15:04"
args: "02 Jan 2006 15:04 -07:00"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View File

@ -126,8 +126,10 @@ search:
# 30.10.2019 14:49
- name: regexp
args: "(\\d{1,2}\\.\\d{2}\\.\\d{4} \\d{1,2}\\:\\d{2})"
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "2.01.2006 15:04"
args: "2.01.2006 15:04 -07:00"
seeders:
selector: i.fa-arrow-up ~ span
leechers:

View File

@ -132,17 +132,17 @@ search:
selector: "table[width=\"100%\"][border=1][cellspacing=0][cellpadding=5] > tbody > tr:has(a[href*=\"hashinfo=\"]){{ if .Config.freeleech }}:has(td:nth-child(3):contains(\"100%\")){{ else }}{{ end }}"
fields:
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
category:
selector: a[href^="viewno18.php?cat="], a[href^="viewbr.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="details.php?id="]
attribute: href
@ -154,8 +154,10 @@ search:
date:
selector: td:nth-child(7)
filters:
- name: append
args: " +07:00" # ICT
- name: dateparse
args: "02-01-200615:04:05"
args: "02-01-200615:04:05 -07:00"
size:
selector: td:nth-child(8)
grabs:

View File

@ -40,7 +40,7 @@ download:
search:
paths:
- path: "{{ if .Keywords }}?do=search&subaction=search&search_start=0&full_search=1&result_from=1&story={{ .Keywords }}&titleonly=3catlist[]=0&searchdate=0&resorder=desc{{else}}lastnews/{{end}}"
- path: "{{ if .Keywords }}?do=search&subaction=search&search_start=0&full_search=1&result_from=1&story={{ .Keywords }}&titleonly=3catlist[]=0&searchdate=0&resorder=desc{{ else }}lastnews/{{ end }}"
rows:
selector: tr.fr_viewn_in:has(td.frs:contains("B"))
@ -64,8 +64,10 @@ search:
date:
selector: i
filters:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02-01-2006 15:04:05"
args: "02-01-2006 15:04:05 -07:00"
size:
selector: td.frs
seeders: