Skip to content

Commit

Permalink
assorted yml: add date TZ
Browse files Browse the repository at this point in the history
code tidy
  • Loading branch information
garfield69 committed Nov 17, 2020
1 parent 2e20f3c commit 9d8b429
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
5 changes: 4 additions & 1 deletion src/Jackett.Common/Definitions/sukebei-pantsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,13 @@ search:
selector: td.tr-dl
optional: true
date:
# Nov 15, 2020
selector: td.date-short
filters:
- name: append
args: " +00:00" # GMT
- name: dateparse
args: "2006-01-02T15:04:05Z"
args: "Jan 2, 2006 -07:00"
size:
selector: td.tr-size
filters:
Expand Down
8 changes: 6 additions & 2 deletions src/Jackett.Common/Definitions/tekno3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ search:
# title descr genre all
searchin: title
incldead: 1
only_free: "{{ if .Config.onlyfree }}1{{else}}0{{end}}"
only_free: "{{ if .Config.onlyfree }}1{{ else }}0{{ end }}"
keywordsfilters:
- name: re_replace
args: ["(\\w+)", " +$1"] # prepend + to each word

rows:
selector: tr.highlight, tr.browse_color, tr.freeleech_color, tr[id^="kdescr"]
after: 1

fields:
category:
selector: a[href^="browse.php?cat="]
Expand Down Expand Up @@ -120,8 +121,10 @@ search:
selector: td:nth-of-type(7):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"
size:
selector: td:nth-of-type(8)
grabs:
Expand All @@ -144,3 +147,4 @@ search:
"*": 1
uploadvolumefactor:
text: 1
# engine tbd
4 changes: 3 additions & 1 deletion src/Jackett.Common/Definitions/theaudioscene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ search:
args: ["Added On ", ""]
- name: re_replace
args: ["(th|st|nd|rd)", ""]
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "Jan 02 2006"
args: "Jan 02 2006 -07:00"

fields:
title:
Expand Down
15 changes: 4 additions & 11 deletions src/Jackett.Common/Definitions/thefallingangels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,13 @@ login:
path: index.php
selector: a[href="logout.php"]

# download:
# before:
# path: ajax_det_poll.php
# method: "post"
# inputs:
# set_thanks: "thanks"
# det_id: "{{ .DownloadUri.Query.torrent }}"
# ajax: "yes"

search:
paths:
- path: selection.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 name 1 descr 2 both
# 0 name, 1 descr, 2 both
blah: 0
orderby: "{{ .Config.sort }}"
sort: "{{ .Config.type }}"
Expand Down Expand Up @@ -260,8 +251,10 @@ search:
filters:
- name: replace
args: [" um", ""]
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02.01.2006 15:04:05"
args: "02.01.2006 15:04:05 -07:00"
description:
selector: selection_unter_af
optional: true
Expand Down
6 changes: 4 additions & 2 deletions src/Jackett.Common/Definitions/torlock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ settings:

search:
paths:
- path: "{{if .Keywords}}/all/torrents/{{ .Keywords }}.html?sort={{ .Config.sort }}&order={{ .Config.type }}{{else}}/fresh.html{{end}}"
- path: "{{if .Keywords}}/all/torrents/{{ .Keywords }}.html?sort={{ .Config.sort }}&order={{ .Config.type }}{{ else }}/fresh.html{{ end }}"
keywordsfilters:
- name: tolower
- name: re_replace
Expand Down Expand Up @@ -110,8 +110,10 @@ search:
selector: td:nth-child(2):contains("/")
optional: true
filters:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "1/2/2006"
args: "1/2/2006 -07:00"
date:
selector: td:nth-child(2):contains("Today"), td:nth-child(2):contains("Yesterday")
optional: true
Expand Down

0 comments on commit 9d8b429

Please sign in to comment.