1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-03 13:46:10 +00:00

assorted yml: dateparse update. related to #14072 (#14086)

This commit is contained in:
Bogdan 2023-02-24 23:33:43 +02:00 committed by GitHub
parent 8de1592d1f
commit 1ec507b6e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 49 additions and 49 deletions

View file

@ -256,7 +256,7 @@ search:
- name: re_replace
args: ["st|nd|rd|th", ""]
- name: dateparse
args: "3pm Jan. 2"
args: "htt MMM. d"
date_years:
# (more than a year ago) Apr. 18th '11
optional: true

View file

@ -87,7 +87,7 @@ search:
- name: append
args: " +08:00" # CST
- name: dateparse
args: "01/02 15:04 -07:00"
args: "MM/dd HH:mm zzz"
date_years:
selector: td:nth-child(1):not(:contains(":"))
optional: true

View file

@ -118,7 +118,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "060102 15:04:05"
args: "yyMMdd HH:mm:ss"
downloadvolumefactor:
case:
img[src="images/freeleech.png"]: 0 # dl not counted

View file

@ -307,7 +307,7 @@ search:
- name: re_replace
args: [" (\\d:)", " 0$1"]
- name: dateparse
args: "02/01/06 15:04:05"
args: "dd/MM/yy HH:mm:ss"
date:
text: "{{ if .Result.date_optional }}{{ .Result.date_optional }}{{ else }}now{{ end }}"
size:

View file

@ -130,7 +130,7 @@ search:
selector: li:has(img#adddate)
filters:
- name: dateparse
args: "02-01-2006, 15:04"
args: "dd-MM-yyyy, HH:mm"
seeders:
text: 1
leechers:

View file

@ -283,7 +283,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "01-02-2006 -07:00"
args: "MM-dd-yyyy zzz"
fields:
title:

View file

@ -166,7 +166,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02 January 2006 15:04 -07:00"
args: "dd MMMM yyyy HH:mm zzz"
date:
text: "{{ if or .Result.date_today .Result.date_year }}{{ or .Result.date_today .Result.date_year }}{{ else }}now{{ end }}"
size:

View file

@ -61,7 +61,7 @@ search:
- name: replace
args: [" ", " 0"]
- name: dateparse
args: "01/02 15:04"
args: "MM/dd HH:mm"
size:
selector: td:nth-child(6)
grabs:

View file

@ -187,7 +187,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "02-01-200615:04:05"
args: "dd-MM-yyyyHH:mm:ss"
size:
selector: td:nth-child(6)
download:

View file

@ -67,7 +67,7 @@ search:
- name: append
args: " +00:00" # GMT
- name: dateparse
args: "02 Jan, 2006 15:04 -07:00"
args: "dd MMM, yyyy HH:mm zzz"
size:
selector: td[data-title="Size"]
downloadvolumefactor:

View file

@ -77,7 +77,7 @@ search:
- name: append
args: " +08:00" # CST (China)
- name: timeparse
args: "15:04 -07:00"
args: "HH:mm zzz"
date_yday:
selector: td:nth-child(1):contains("昨天")
optional: true

View file

@ -272,7 +272,7 @@ search:
- name: regexp
args: "Partagé Voilà : </b>(.*?)<br"
- name: dateparse
args: "01-02-2006"
args: "MM-dd-yyyy"
downloadvolumefactor:
case:
img[src="images/Torrents/free.png"]: 0

View file

@ -154,7 +154,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "02.01.200615:04:05"
args: "dd.MM.yyyyHH:mm:ss"
leechers:
selector: td:nth-last-child(2)
seeders:

View file

@ -125,7 +125,7 @@ search:
- name: regexp
args: "(\\d{2}-\\d{2}-\\d{2} \\d{2}:\\d{2})"
- name: dateparse
args: "02-01-06 15:04"
args: "dd-MM-yy HH:mm"
size:
selector: td:nth-last-child(5)
grabs:

View file

@ -149,7 +149,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "02/01/2006 15:04"
args: "dd/MM/yyyy HH:mm"
genre:
selector: td:nth-child(2)
remove: a

View file

@ -135,7 +135,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "15:04:0502/01/2006"
args: "HH:mm:ssdd/MM/yyyy"
size:
selector: td:nth-child(7)
grabs:

View file

@ -108,7 +108,7 @@ search:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02 Jan 06 -07:00"
args: "dd MMM yy zzz"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
size:

View file

@ -166,7 +166,7 @@ search:
- name: re_replace
args: ["[^:]+: ", ""]
- name: dateparse
args: "02/01/06 15:04 -07:00"
args: "dd/MM/yy HH:mm zzz"
description:
selector: div.sub_title
downloadvolumefactor:

View file

@ -71,7 +71,7 @@ search:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02-01-2006 -07:00"
args: "dd-MM-yyyy zzz"
size:
selector: td:nth-child(3)
filters:

View file

@ -169,7 +169,7 @@ search:
- name: append
args: " +02:00" # EET
- name: dateparse
args: "15:04 02-Jan-2006 -07:00"
args: "HH:mm dd-MMM-yyyy zzz"
downloadvolumefactor:
case:
"a:contains(\"[FFL]\")": 0

View file

@ -159,7 +159,7 @@ search:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02.01.06 -07:00"
args: "dd.MM.yy zzz"
seeders:
selector: td:nth-child(6) font
filters:

View file

@ -292,7 +292,7 @@ search:
- name: replace
args: [" в", ""]
- name: dateparse
args: "02.01.2006 15:04"
args: "dd.MM.yyyy HH:mm"
date:
text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}"
downloadvolumefactor:

View file

@ -347,7 +347,7 @@ search:
- name: regexp
args: "(\\d{2}-\\d{2}-\\d{4})"
- name: dateparse
args: "02-01-2006"
args: "dd-MM-yyyy"
size:
selector: td:nth-last-child(5)
seeders:

View file

@ -203,7 +203,7 @@ search:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02/01/2006 15:04:05 -07:00"
args: "dd/MM/yyyy HH:mm:ss zzz"
seeders:
selector: td:nth-child(8)
leechers:

View file

@ -792,7 +792,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02 Jan 2006 -07:00"
args: "dd MMM yyyy zzz"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View file

@ -68,7 +68,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "/2006/01/02 -07:00"
args: "/yyyy/MM/dd zzz"
size:
selector: span.is-size-6
seeders:

View file

@ -238,7 +238,7 @@ search:
- name: regexp
args: (\d{2}\.\d{2}\.\d{4})
- name: dateparse
args: "02.01.2006"
args: "dd.MM.yyyy"
date:
text: "{{ if .Result.date_optional }}{{ .Result.date_optional }}{{ else }}now{{ end }}"
downloadvolumefactor:

View file

@ -142,7 +142,7 @@ search:
- name: replace
args: ["дек", "Dec"]
- name: dateparse
args: "15:04:0502 Jan 2006"
args: "HH:mm:ssdd MMM yyyy"
seeders:
selector: td:nth-child(8)
leechers:

View file

@ -92,7 +92,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "15:04:05 02/01/2006 -07:00"
args: "HH:mm:ss dd/MM/yyyy zzz"
seeders:
selector: td[valign="middle"] > p:nth-child(5)
filters:

View file

@ -213,7 +213,7 @@ search:
# - name: re_replace
# args: ["st,|nd,|rd,|th,", ""]
# - name: dateparse
# args: "Monday January 2 2006"
# args: "dddd MMMM d yyyy"
fields:
category:

View file

@ -229,7 +229,7 @@ search:
- name: replace
args: ["Дек", "Dec"]
- name: dateparse
args: "15:04 2-Jan-06"
args: "HH:mm d-MMM-yy"
downloadvolumefactor:
case:
img[src="images/tor_gold.gif"]: 0

View file

@ -173,7 +173,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02/01/2006 15:04 -07:00"
args: "dd/MM/yyyy HH:mm zzz"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View file

@ -139,7 +139,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "15:04:05 02/01/2006"
args: "HH:mm:ss dd/MM/yyyy"
seeders:
selector: td:nth-last-child(4)
leechers:

View file

@ -947,7 +947,7 @@ search:
- name: replace
args: ["дек", "Dec"]
- name: dateparse
args: "02 Jan 2006, 15:04"
args: "dd MMM yyyy, HH:mm"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View file

@ -148,7 +148,7 @@ search:
- name: append
args: " 00:00:00 +03:00" # MSK
- name: dateparse
args: "02 Jan 06 15:04:05 -07:00"
args: "dd MMM yy HH:mm:ss zzz"
# some results don't have comments which throws off td count. So we go fishing for the following fields
size:
optional: true

View file

@ -121,7 +121,7 @@ search:
- name: append
args: " +02:00" # EET
- name: dateparse
args: "15:04:052006-01-02 -07:00"
args: "HH:mm:ssyyyy-MM-dd zzz"
size:
selector: td:nth-last-child(4)
seeders:

View file

@ -278,7 +278,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02.01.2006 -07:00"
args: "dd.MM.yyyy zzz"
size:
selector: td:nth-last-child(5)
seeders:

View file

@ -159,7 +159,7 @@ search:
- name: append
args: " +07:00" # ICT
- name: dateparse
args: "02-01-200615:04:05 -07:00"
args: "dd-MM-yyyyHH:mm:ss zzz"
size:
selector: td:nth-child(8)
grabs:

View file

@ -70,7 +70,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02-01-2006 15:04:05 -07:00"
args: "dd-MM-yyyy HH:mm:ss zzz"
size:
selector: td.frs
seeders:

View file

@ -149,7 +149,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "1/2/2006 -07:00"
args: "M/d/yyyy zzz"
date_day:
selector: td:nth-child(2):contains("Today"), td:nth-child(2):contains("Yesterday")
optional: true

View file

@ -100,7 +100,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "02 January 2006 15:04:05 -07:00"
args: "dd MMMM yyyy HH:mm:ss zzz"
seeders:
text: 1
leechers:

View file

@ -190,7 +190,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "02/01/06 15:04 -07:00"
args: "dd/MM/yy HH:mm zzz"
date:
text: "{{ if or .Result.date_year .Result.date_ago }}{{ or .Result.date_year .Result.date_ago }}{{ else }}now{{ end }}"
downloadvolumefactor:

View file

@ -94,13 +94,13 @@ search:
optional: true
filters:
- name: dateparse
args: "01-02"
args: "MM-dd"
date_time:
selector: div.wr-date:contains(":")
optional: true
filters:
- name: dateparse
args: "15:04"
args: "HH:mm"
date:
text: "{{ if or .Result.date_time .Result.date_day }}{{ or .Result.date_time .Result.date_day }}{{ else }}now{{ end }}"
size:

View file

@ -71,7 +71,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02 Jan 06 -07:00"
args: "dd MMM yy zzz"
size:
selector: td:nth-of-type(3)
seeders:

View file

@ -126,7 +126,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "02-01-06 15:04"
args: "dd-MM-yy HH:mm"
size:
selector: td:nth-last-child(5)
grabs:

View file

@ -140,7 +140,7 @@ search:
# auto adjusted by site account profile
filters:
- name: dateparse
args: "02/01/2006 15:04:05"
args: "dd/MM/yyyy HH:mm:ss"
size:
selector: td:nth-child(7)
seeders:

View file

@ -76,7 +76,7 @@ search:
- name: append
args: " +03:00" # MSK
- name: dateparse
args: "02 Jan 06 -07:00"
args: "dd MMM yy zzz"
size:
selector: td:nth-of-type(3)
seeders:

View file

@ -101,7 +101,7 @@ search:
- name: append
args: " -07:00" # PDT
- name: dateparse
args: "02/01/06 -07:00"
args: "dd/MM/yy zzz"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
seeders: