From 2b227ffeb01894146f3c5aaa82612d09352ed056 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 19 Aug 2021 22:57:44 +1200 Subject: [PATCH] turktorrent: fix dateparse --- .../Definitions/turktorrent.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Jackett.Common/Definitions/turktorrent.yml b/src/Jackett.Common/Definitions/turktorrent.yml index 8891c5b54..ada95e50f 100644 --- a/src/Jackett.Common/Definitions/turktorrent.yml +++ b/src/Jackett.Common/Definitions/turktorrent.yml @@ -145,14 +145,9 @@ search: selector: a[href*="?p=torrents&pid=10&action=details"] attribute: href date: - # within the hour - optional: true - selector: td.torrent_name - attribute: data-time - date: - optional: true # Uploaded 30-01-2019 15:02 by - selector: td.torrent_name:not(:contains(" at ")) + selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) + optional: true filters: - name: regexp args: "Uploaded (.+?) by" @@ -161,16 +156,22 @@ search: - name: dateparse args: "02-01-2006 15:04 -07:00" date: - optional: true # Uploaded Friday at 05:11 by # Uploaded Today at 00:48 by # Uploaded Yesterday at 23:57 by - selector: td.torrent_name:contains(" at ") + selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time])) + optional: true filters: - name: regexp args: "Uploaded (.+?) by" - name: replace args: [" at ", " "] + - name: fuzzytime + date: + # within the hour (unix) + selector: abbr[data-time] + attribute: data-time + optional: true download: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href