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")) selector: td:nth-last-child(6):not(:contains("day"))
optional: true optional: true
filters: filters:
- name: append
args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "Jan 2 2006 03:04 PM" args: "Jan 2 2006 03:04 PM -07:00"
date: date:
# Today 02:40 PM # Today 02:40 PM
# Yesterday 09:10 AM # Yesterday 09:10 AM

View File

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

View File

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

View File

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

View File

@@ -126,8 +126,10 @@ search:
# 30.10.2019 14:49 # 30.10.2019 14:49
- name: regexp - name: regexp
args: "(\\d{1,2}\\.\\d{2}\\.\\d{4} \\d{1,2}\\:\\d{2})" args: "(\\d{1,2}\\.\\d{2}\\.\\d{4} \\d{1,2}\\:\\d{2})"
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "2.01.2006 15:04" args: "2.01.2006 15:04 -07:00"
seeders: seeders:
selector: i.fa-arrow-up ~ span selector: i.fa-arrow-up ~ span
leechers: 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 }}" 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: fields:
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
category: category:
selector: a[href^="viewno18.php?cat="], a[href^="viewbr.php?cat="] selector: a[href^="viewno18.php?cat="], a[href^="viewbr.php?cat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
download: download:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
@@ -154,8 +154,10 @@ search:
date: date:
selector: td:nth-child(7) selector: td:nth-child(7)
filters: filters:
- name: append
args: " +07:00" # ICT
- name: dateparse - name: dateparse
args: "02-01-200615:04:05" args: "02-01-200615:04:05 -07:00"
size: size:
selector: td:nth-child(8) selector: td:nth-child(8)
grabs: grabs:

View File

@@ -40,7 +40,7 @@ download:
search: search:
paths: 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: rows:
selector: tr.fr_viewn_in:has(td.frs:contains("B")) selector: tr.fr_viewn_in:has(td.frs:contains("B"))
@@ -64,8 +64,10 @@ search:
date: date:
selector: i selector: i
filters: filters:
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "02-01-2006 15:04:05" args: "02-01-2006 15:04:05 -07:00"
size: size:
selector: td.frs selector: td.frs
seeders: seeders: