From 1ec507b6e0d8273be787eecd42ca7b4aeac7a141 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 24 Feb 2023 23:33:43 +0200 Subject: [PATCH] assorted yml: dateparse update. related to #14072 (#14086) --- src/Jackett.Common/Definitions/1337x.yml | 2 +- src/Jackett.Common/Definitions/acgsou.yml | 2 +- src/Jackett.Common/Definitions/aidoruonline.yml | 2 +- src/Jackett.Common/Definitions/amigosshare.yml | 2 +- src/Jackett.Common/Definitions/anime-free.yml | 2 +- src/Jackett.Common/Definitions/audionews.yml | 2 +- src/Jackett.Common/Definitions/bitru.yml | 2 +- src/Jackett.Common/Definitions/btetree.yml | 2 +- src/Jackett.Common/Definitions/bwtorrents.yml | 2 +- src/Jackett.Common/Definitions/cloudtorrents.yml | 2 +- src/Jackett.Common/Definitions/comicat.yml | 2 +- src/Jackett.Common/Definitions/crazyspirits.yml | 2 +- src/Jackett.Common/Definitions/extremlymtorrents.yml | 2 +- src/Jackett.Common/Definitions/falkonvisionteam.yml | 2 +- src/Jackett.Common/Definitions/finvip.yml | 2 +- src/Jackett.Common/Definitions/fluxzone.yml | 2 +- src/Jackett.Common/Definitions/frozenlayer.yml | 2 +- src/Jackett.Common/Definitions/fuzer.yml | 2 +- src/Jackett.Common/Definitions/gamestorrents.yml | 2 +- src/Jackett.Common/Definitions/gay-torrents.yml | 2 +- src/Jackett.Common/Definitions/ilcorsaronero.yml | 2 +- src/Jackett.Common/Definitions/kinozal.yml | 2 +- src/Jackett.Common/Definitions/les-cinephiles.yml | 2 +- src/Jackett.Common/Definitions/lesaloon.yml | 2 +- src/Jackett.Common/Definitions/nntt.yml | 2 +- src/Jackett.Common/Definitions/onejav.yml | 2 +- src/Jackett.Common/Definitions/parnuxi.yml | 2 +- src/Jackett.Common/Definitions/peersfm.yml | 2 +- src/Jackett.Common/Definitions/pornleech.yml | 2 +- src/Jackett.Common/Definitions/racingforme.yml | 2 +- src/Jackett.Common/Definitions/rainbowtracker.yml | 2 +- src/Jackett.Common/Definitions/rapidzona.yml | 2 +- src/Jackett.Common/Definitions/resurrectthenet.yml | 2 +- src/Jackett.Common/Definitions/riperam.yml | 2 +- src/Jackett.Common/Definitions/rutor.yml | 2 +- src/Jackett.Common/Definitions/seedfile.yml | 2 +- src/Jackett.Common/Definitions/seedoff.yml | 2 +- src/Jackett.Common/Definitions/siambit.yml | 2 +- src/Jackett.Common/Definitions/sosulki.yml | 2 +- src/Jackett.Common/Definitions/torlock.yml | 2 +- src/Jackett.Common/Definitions/torrentcore.yml | 2 +- src/Jackett.Common/Definitions/torrentgalaxy.yml | 2 +- src/Jackett.Common/Definitions/torrentqq.yml | 4 ++-- src/Jackett.Common/Definitions/trupornolabs.yml | 2 +- src/Jackett.Common/Definitions/turkseed.yml | 2 +- src/Jackett.Common/Definitions/vtorrent.yml | 2 +- src/Jackett.Common/Definitions/xxxtor.yml | 2 +- src/Jackett.Common/Definitions/yourbittorrent.yml | 2 +- 48 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/Jackett.Common/Definitions/1337x.yml b/src/Jackett.Common/Definitions/1337x.yml index 7be415e50..9fe59663d 100644 --- a/src/Jackett.Common/Definitions/1337x.yml +++ b/src/Jackett.Common/Definitions/1337x.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/acgsou.yml b/src/Jackett.Common/Definitions/acgsou.yml index db9cd4c10..f9f354141 100644 --- a/src/Jackett.Common/Definitions/acgsou.yml +++ b/src/Jackett.Common/Definitions/acgsou.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/aidoruonline.yml b/src/Jackett.Common/Definitions/aidoruonline.yml index 271d0dfb5..c063b79d7 100644 --- a/src/Jackett.Common/Definitions/aidoruonline.yml +++ b/src/Jackett.Common/Definitions/aidoruonline.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/amigosshare.yml b/src/Jackett.Common/Definitions/amigosshare.yml index 8f7e4cba8..5da6e57fa 100644 --- a/src/Jackett.Common/Definitions/amigosshare.yml +++ b/src/Jackett.Common/Definitions/amigosshare.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/anime-free.yml b/src/Jackett.Common/Definitions/anime-free.yml index 3602c4b9a..4500a94aa 100644 --- a/src/Jackett.Common/Definitions/anime-free.yml +++ b/src/Jackett.Common/Definitions/anime-free.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/audionews.yml b/src/Jackett.Common/Definitions/audionews.yml index 55323837d..ec655be6e 100644 --- a/src/Jackett.Common/Definitions/audionews.yml +++ b/src/Jackett.Common/Definitions/audionews.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/bitru.yml b/src/Jackett.Common/Definitions/bitru.yml index 46e4342cb..531a23d0a 100644 --- a/src/Jackett.Common/Definitions/bitru.yml +++ b/src/Jackett.Common/Definitions/bitru.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/btetree.yml b/src/Jackett.Common/Definitions/btetree.yml index a75cfb53b..513f759bb 100644 --- a/src/Jackett.Common/Definitions/btetree.yml +++ b/src/Jackett.Common/Definitions/btetree.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/bwtorrents.yml b/src/Jackett.Common/Definitions/bwtorrents.yml index 288d4e27c..c2b859f89 100644 --- a/src/Jackett.Common/Definitions/bwtorrents.yml +++ b/src/Jackett.Common/Definitions/bwtorrents.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/cloudtorrents.yml b/src/Jackett.Common/Definitions/cloudtorrents.yml index 0f4873aae..ea5ec3082 100644 --- a/src/Jackett.Common/Definitions/cloudtorrents.yml +++ b/src/Jackett.Common/Definitions/cloudtorrents.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/comicat.yml b/src/Jackett.Common/Definitions/comicat.yml index c8eb7ef21..f333ab30a 100644 --- a/src/Jackett.Common/Definitions/comicat.yml +++ b/src/Jackett.Common/Definitions/comicat.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/crazyspirits.yml b/src/Jackett.Common/Definitions/crazyspirits.yml index 2dcdebd60..a1228d538 100644 --- a/src/Jackett.Common/Definitions/crazyspirits.yml +++ b/src/Jackett.Common/Definitions/crazyspirits.yml @@ -272,7 +272,7 @@ search: - name: regexp args: "Partagé Voilà : (.*?) p:nth-child(5) filters: diff --git a/src/Jackett.Common/Definitions/racingforme.yml b/src/Jackett.Common/Definitions/racingforme.yml index 08b1b2261..566194f61 100644 --- a/src/Jackett.Common/Definitions/racingforme.yml +++ b/src/Jackett.Common/Definitions/racingforme.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/rainbowtracker.yml b/src/Jackett.Common/Definitions/rainbowtracker.yml index 43ce0dfe9..6c41e63a7 100644 --- a/src/Jackett.Common/Definitions/rainbowtracker.yml +++ b/src/Jackett.Common/Definitions/rainbowtracker.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/rapidzona.yml b/src/Jackett.Common/Definitions/rapidzona.yml index 12f792002..9a0826d34 100644 --- a/src/Jackett.Common/Definitions/rapidzona.yml +++ b/src/Jackett.Common/Definitions/rapidzona.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/resurrectthenet.yml b/src/Jackett.Common/Definitions/resurrectthenet.yml index bc76c90bf..1df496783 100644 --- a/src/Jackett.Common/Definitions/resurrectthenet.yml +++ b/src/Jackett.Common/Definitions/resurrectthenet.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/riperam.yml b/src/Jackett.Common/Definitions/riperam.yml index a6d802e4d..c758c6499 100644 --- a/src/Jackett.Common/Definitions/riperam.yml +++ b/src/Jackett.Common/Definitions/riperam.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/rutor.yml b/src/Jackett.Common/Definitions/rutor.yml index e96b34b7e..1b28ec7a6 100644 --- a/src/Jackett.Common/Definitions/rutor.yml +++ b/src/Jackett.Common/Definitions/rutor.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/seedfile.yml b/src/Jackett.Common/Definitions/seedfile.yml index 651300b7c..60fb13282 100644 --- a/src/Jackett.Common/Definitions/seedfile.yml +++ b/src/Jackett.Common/Definitions/seedfile.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/seedoff.yml b/src/Jackett.Common/Definitions/seedoff.yml index 7618dd252..8789ca140 100644 --- a/src/Jackett.Common/Definitions/seedoff.yml +++ b/src/Jackett.Common/Definitions/seedoff.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/siambit.yml b/src/Jackett.Common/Definitions/siambit.yml index 550db0a8a..ced7ae112 100644 --- a/src/Jackett.Common/Definitions/siambit.yml +++ b/src/Jackett.Common/Definitions/siambit.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/sosulki.yml b/src/Jackett.Common/Definitions/sosulki.yml index f5f67092a..f9c4ced27 100644 --- a/src/Jackett.Common/Definitions/sosulki.yml +++ b/src/Jackett.Common/Definitions/sosulki.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/torlock.yml b/src/Jackett.Common/Definitions/torlock.yml index f0447e227..a1d1d8993 100644 --- a/src/Jackett.Common/Definitions/torlock.yml +++ b/src/Jackett.Common/Definitions/torlock.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/torrentcore.yml b/src/Jackett.Common/Definitions/torrentcore.yml index 4f36fabc2..64df17c37 100644 --- a/src/Jackett.Common/Definitions/torrentcore.yml +++ b/src/Jackett.Common/Definitions/torrentcore.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/torrentgalaxy.yml b/src/Jackett.Common/Definitions/torrentgalaxy.yml index 28f9e3c82..1a895dce9 100644 --- a/src/Jackett.Common/Definitions/torrentgalaxy.yml +++ b/src/Jackett.Common/Definitions/torrentgalaxy.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/torrentqq.yml b/src/Jackett.Common/Definitions/torrentqq.yml index fbf1e5bdb..1abad0dc3 100644 --- a/src/Jackett.Common/Definitions/torrentqq.yml +++ b/src/Jackett.Common/Definitions/torrentqq.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/trupornolabs.yml b/src/Jackett.Common/Definitions/trupornolabs.yml index 2d3b206fb..5eb0c925b 100644 --- a/src/Jackett.Common/Definitions/trupornolabs.yml +++ b/src/Jackett.Common/Definitions/trupornolabs.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/turkseed.yml b/src/Jackett.Common/Definitions/turkseed.yml index b7a91f728..45a470595 100644 --- a/src/Jackett.Common/Definitions/turkseed.yml +++ b/src/Jackett.Common/Definitions/turkseed.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/vtorrent.yml b/src/Jackett.Common/Definitions/vtorrent.yml index c7b7593b3..492ff086a 100644 --- a/src/Jackett.Common/Definitions/vtorrent.yml +++ b/src/Jackett.Common/Definitions/vtorrent.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/xxxtor.yml b/src/Jackett.Common/Definitions/xxxtor.yml index a2a31adc1..467b7d3d8 100644 --- a/src/Jackett.Common/Definitions/xxxtor.yml +++ b/src/Jackett.Common/Definitions/xxxtor.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/yourbittorrent.yml b/src/Jackett.Common/Definitions/yourbittorrent.yml index 78247ed17..dffb8fd0a 100644 --- a/src/Jackett.Common/Definitions/yourbittorrent.yml +++ b/src/Jackett.Common/Definitions/yourbittorrent.yml @@ -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: