assorted yml: add date TZ

code tidy
This commit is contained in:
Garfield69
2020-11-16 15:47:35 +13:00
parent 52f3a75ee0
commit c644ba215f
12 changed files with 69 additions and 21 deletions

View File

@@ -187,8 +187,10 @@ search:
selector: td:nth-child(4) span selector: td:nth-child(4) span
attribute: title attribute: title
filters: filters:
- name: append
args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "Jan 2 2006, 15:04" args: "Jan 2 2006, 15:04 -07:00"
size: size:
selector: td:nth-child(5) selector: td:nth-child(5)
grabs: grabs:

View File

@@ -60,8 +60,10 @@ search:
selector: p.is-6 > a selector: p.is-6 > a
attribute: href attribute: href
filters: filters:
- name: append
args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "/2006/01/02" args: "/2006/01/02 -07:00"
size: size:
selector: span.is-size-6 selector: span.is-size-6
seeders: seeders:

View File

@@ -719,15 +719,19 @@ search:
optional: true optional: true
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-")) selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-"))
filters: filters:
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "15:04" args: "15:04 -07:00"
date: date:
# 15:04 24-02-19 # 15:04 24-02-19
optional: true optional: true
selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-") selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-")
filters: filters:
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "15:04 2-01-06" args: "15:04 2-01-06 -07:00"
# Russian and Ukranian and English languages are supported # Russian and Ukranian and English languages are supported
grabs: grabs:
selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"] selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"]

View File

@@ -615,7 +615,7 @@ caps:
modes: modes:
search: [q] search: [q]
tv-search: [q] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
@@ -642,7 +642,10 @@ settings:
options: options:
2: desc 2: desc
1: asc 1: asc
- name: striprussian
type: checkbox
label: Strip Russian Letters
default: true
login: login:
path: login.php path: login.php
method: post method: post
@@ -650,8 +653,8 @@ login:
"login_username": "{{ .Config.username }}" "login_username": "{{ .Config.username }}"
"login_password": "{{ .Config.password }}" "login_password": "{{ .Config.password }}"
autologin: 1 autologin: 1
login: "Вход" login: Вход
redirect: "/" redirect: /
error: error:
- selector: table tr td div.alert - selector: table tr td div.alert
test: test:
@@ -662,6 +665,13 @@ search:
paths: paths:
- path: tracker.php - path: tracker.php
method: post method: post
keywordsfilters:
- name: diacritics
args: replace
- name: re_replace # S01 to Cезон 1
args: ["(?i)\\bS0*(\\d+)\\b", "Сезон $1"]
- name: re_replace # S01E01 to Сезон 1 Серии 1
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "Сезон $1 Серии $2"]
inputs: inputs:
$raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}" $raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}"
prev_a: 0 prev_a: 0
@@ -700,6 +710,16 @@ search:
args: f args: f
title: title:
selector: td a.genmed selector: td a.genmed
filters:
# normalize to SXXEYY format
- name: re_replace
args: ["[\\:\\-\\/\\|]", " "]
- name: re_replace
args: ["(.+)\\s+[CСcс]езон\\s+(\\d+)\\s+[CСcс]ерии\\s+(\\d+)\\s+(\\d+)\\s+из\\s+\\d+(.+)", "$1 S$2E$3-$4 rus $5"]
- name: re_replace
args: ["(.+)\\s+[CСcс]езон\\s+(\\d+)\\s+[CСcс]ери[ия]\\s+(\\d+)\\s+из\\s+\\d+(.+)", "$1 S$2E$3 rus $4"]
- name: re_replace
args: ["(\\([А-Яа-яЁё\\W]+\\))|(^[А-Яа-яЁё\\W\\d]+\\/ )|([а-яА-ЯЁё \\-]+,+)|([а-яА-ЯЁё]+)", "{{ if .Config.striprussian }}{{ else }}$0{{ end }}"]
details: details:
selector: td a.genmed selector: td a.genmed
attribute: href attribute: href
@@ -714,15 +734,19 @@ search:
optional: true optional: true
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-")) selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-"))
filters: filters:
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "15:04" args: "15:04 -07:00"
date: date:
# 15:04 24-02-19 # 15:04 24-02-19
optional: true optional: true
selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-") selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-")
filters: filters:
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "15:04 2-01-06" args: "15:04 2-01-06 -07:00"
# Russian and Ukranian and English languages are supported # Russian and Ukranian and English languages are supported
grabs: grabs:
selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"] selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"]

View File

@@ -151,8 +151,10 @@ search:
# 19/01/2019 # 19/01/2019
selector: td:nth-last-child(9) selector: td:nth-last-child(9)
filters: filters:
- name: append
args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "02/01/2006" args: "02/01/2006 -07:00"
size: size:
selector: td:nth-last-child(8) selector: td:nth-last-child(8)
seeders: seeders:

View File

@@ -55,8 +55,10 @@ search:
filters: filters:
- name: querystring - name: querystring
args: date args: date
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "2006-01-02" args: "2006-01-02 -07:00"
size: size:
selector: font[color="grey"] selector: font[color="grey"]
filters: filters:

View File

@@ -50,9 +50,9 @@ search:
page: torrents page: torrents
$raw: "category={{ range .Categories }}{{.}};{{end}}" $raw: "category={{ range .Categories }}{{.}};{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 file 1 file&descr 2 descr 3 uploaders # 0 file, 1 file&descr, 2 descr, 3 uploaders
option: 0 option: 0
# 0 all 1 active 2 dead # 0 all, 1 active, 2 dead
active: 0 active: 0
order: "{{ .Config.sort }}" order: "{{ .Config.sort }}"
by: "{{ .Config.type }}" by: "{{ .Config.type }}"
@@ -88,8 +88,10 @@ search:
filters: filters:
- name: regexp - name: regexp
args: "AddDate:\\s*\u00a0\\s*(.+?)$" args: "AddDate:\\s*\u00a0\\s*(.+?)$"
- name: append
args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "15:04:05 02/01/2006" args: "15:04:05 02/01/2006 -07:00"
seeders: seeders:
selector: td[valign="middle"] > p:nth-child(5) selector: td[valign="middle"] > p:nth-child(5)
filters: filters:

View File

@@ -96,7 +96,7 @@ search:
- path: search.php - path: search.php
inputs: inputs:
tracker_search: torrent tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}" keywords: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
terms: all terms: all
author: "" author: ""
sc: 1 sc: 1
@@ -209,8 +209,10 @@ search:
args: ["ноя", "Nov"] args: ["ноя", "Nov"]
- name: replace - name: replace
args: ["дек", "Dec"] args: ["дек", "Dec"]
- 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

@@ -65,8 +65,10 @@ search:
filters: filters:
- name: replace - name: replace
args: ["Добавлен: ", ""] args: ["Добавлен: ", ""]
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05" args: "2006-01-02 15:04:05 -07:00"
size: size:
selector: td:nth-child(4) selector: td:nth-child(4)
seeders: seeders:

View File

@@ -109,8 +109,10 @@ search:
filters: filters:
- name: regexp - name: regexp
args: "(\\d{1,2}-\\d{2}-\\d{4}, \\d{2}:\\d{2})" args: "(\\d{1,2}-\\d{2}-\\d{4}, \\d{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"
size: size:
text: "1 GB" text: "1 GB"
seeders: seeders:

View File

@@ -105,8 +105,10 @@ search:
selector: td:nth-child(4) span selector: td:nth-child(4) span
attribute: title attribute: title
filters: filters:
- name: append
args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05" args: "2006-01-02 15:04:05 -07:00"
downloadvolumefactor: downloadvolumefactor:
case: case:
img.pro_free: 0 img.pro_free: 0

View File

@@ -331,8 +331,10 @@ search:
date: date:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:
- name: append
args: " +01:00" # CET
- name: dateparse - name: dateparse
args: "02/01/2006" args: "02/01/2006 -07:00"
download: download:
selector: a[href^="download.php"] selector: a[href^="download.php"]
attribute: href attribute: href