From 7f0477c6fc73a683960da4ac087187c06195160b Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 8 Dec 2020 12:29:04 +1300 Subject: [PATCH] torrentproject2: alternate date parsing resolves #10435 --- .../Definitions/torrentproject2.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/torrentproject2.yml b/src/Jackett.Common/Definitions/torrentproject2.yml index 0b7ca49a7..0d9784ce8 100644 --- a/src/Jackett.Common/Definitions/torrentproject2.yml +++ b/src/Jackett.Common/Definitions/torrentproject2.yml @@ -82,9 +82,23 @@ search: download: selector: span > a attribute: href + date: + # Sep. 7th '10 + selector: div > span:nth-child(4):not(:contains(":")) + optional: true + filters: + - name: re_replace + args: ["(?i)(st|nd|rd|th)", ""] + - name: replace + args: ["'", ""] + - name: append + args: " -07:00" # PDT + - name: dateparse + args: "Jan. 2 06 -07:00" date: # 2020-11-05 07:34:44 - selector: div > span:nth-child(4) + selector: div > span:nth-child(4):contains(":") + optional: true filters: - name: append args: " -07:00" # PDT