mvgroup*: add date TZ

This commit is contained in:
Garfield69 2020-10-08 19:22:17 +13:00
parent 0cec4f9b56
commit 57364e03ba
2 changed files with 18 additions and 14 deletions

View File

@ -142,19 +142,21 @@ search:
paths: paths:
- path: forumtracker.php - path: forumtracker.php
inputs: inputs:
seed: "{{ if .Config.seed }}1{{else}}0{{end}}" seed: "{{ if .Config.seed }}1{{ else }}0{{ end }}"
withsubs: "{{ re_replace .Config.withsubs \"_\" \"\" }}" withsubs: "{{ re_replace .Config.withsubs \"_\" \"\" }}"
filter: "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}" filter: "{{ if .Config.hidef }}hd+{{ else }}{{ end }}{{ .Keywords }}"
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
order: "{{ .Config.type }}" order: "{{ .Config.type }}"
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["S01E01", "{{ if .Config.stripS01E01 }}{{else}}S01E01{{end}}"] # optionally remove S01E01 from search args: ["S01E01", "{{ if .Config.stripS01E01 }}{{ else }}S01E01{{ end }}"] # optionally remove S01E01 from search
rows: rows:
selector: tr:has(a.magnetlink) selector: tr:has(a.magnetlink)
fields: fields:
category:
text: 1
title: title:
# fallback title (to prevent abend if optional is not found) # fallback title (to prevent abend if optional is not found)
text: "title not found" text: "title not found"
@ -165,7 +167,7 @@ search:
- name: re_replace - name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"] args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append - name: append
args: "{{ if .Config.stripS01E01 }}{{else}} S01E01{{end}}" args: "{{ if .Config.stripS01E01 }}{{ else }} S01E01{{ end }}"
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
@ -176,15 +178,15 @@ search:
magnet: magnet:
selector: td a.magnetlink selector: td a.magnetlink
attribute: href attribute: href
category:
text: 1
size: size:
text: "500 MB" text: "500 MB"
date: date:
selector: td:nth-of-type(3) selector: td:nth-of-type(3)
filters: filters:
- name: append
args: " +00:00" # GMT
- name: dateparse - name: dateparse
args: "2006/01/02" args: "2006/01/02 -07:00"
seeders: seeders:
selector: td:nth-of-type(4) selector: td:nth-of-type(4)
leechers: leechers:

View File

@ -142,19 +142,21 @@ search:
paths: paths:
- path: maintracker.php - path: maintracker.php
inputs: inputs:
seed: "{{ if .Config.seed }}1{{else}}0{{end}}" seed: "{{ if .Config.seed }}1{{ else }}0{{ end }}"
withsubs: "{{ re_replace .Config.withsubs \"_\" \"\" }}" withsubs: "{{ re_replace .Config.withsubs \"_\" \"\" }}"
filter: "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}" filter: "{{ if .Config.hidef }}hd+{{ else }}{{ end }}{{ .Keywords }}"
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
order: "{{ .Config.type }}" order: "{{ .Config.type }}"
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["S01E01", "{{ if .Config.stripS01E01 }}{{else}}S01E01{{end}}"] # optionally remove S01E01 from search args: ["S01E01", "{{ if .Config.stripS01E01 }}{{ else }}S01E01{{ end }}"] # optionally remove S01E01 from search
rows: rows:
selector: tr:has(a.magnetlink) selector: tr:has(a.magnetlink)
fields: fields:
category:
text: 1
title: title:
# fallback title (to prevent abend if optional is not found) # fallback title (to prevent abend if optional is not found)
text: "title not found" text: "title not found"
@ -165,7 +167,7 @@ search:
- name: re_replace - name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"] args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append - name: append
args: "{{ if .Config.stripS01E01 }}{{else}} S01E01{{end}}" args: "{{ if .Config.stripS01E01 }}{{ else }} S01E01{{ end }}"
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
@ -176,15 +178,15 @@ search:
magnet: magnet:
selector: td a.magnetlink selector: td a.magnetlink
attribute: href attribute: href
category:
text: 1
size: size:
text: "500 MB" text: "500 MB"
date: date:
selector: td:nth-of-type(3) selector: td:nth-of-type(3)
filters: filters:
- name: append
args: " +00:00" # GMT
- name: dateparse - name: dateparse
args: "2006/01/02" args: "2006/01/02 -07:00"
seeders: seeders:
selector: td:nth-of-type(4) selector: td:nth-of-type(4)
leechers: leechers: