From ce4eb2311ee13c6f9057c11bb6d43ad0018c9c98 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 2 Jun 2020 08:45:42 +1200 Subject: [PATCH] asgaard: fix date parsing. --- src/Jackett.Common/Definitions/asgaard.yml | 23 +++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/Jackett.Common/Definitions/asgaard.yml b/src/Jackett.Common/Definitions/asgaard.yml index 4170a72b3..47fc0d346 100644 --- a/src/Jackett.Common/Definitions/asgaard.yml +++ b/src/Jackett.Common/Definitions/asgaard.yml @@ -158,11 +158,6 @@ search: download: selector: a[href*="download.php?torrent="] attribute: href - date: - selector: td:nth-child(2) > div > div:last-of-type - filters: - - name: dateparse - args: "2 Jan 2006 15:04:05" files: # remember #5754 advanced users have additional last TD so dont go using nth-last-child ;-) selector: td:nth-child(5) @@ -174,6 +169,24 @@ search: selector: td:nth-child(9) leechers: selector: td:nth-child(10) + date: + # 26 May 20 14:05:06 + selector: td:nth-child(2) > div > div:last-of-type:not(:contains("day")) + optional: true + # drop New! + remove: span + filters: + - name: dateparse + args: "2 Jan 2006 15:04:05" + date: + # Today, 20:26:23 + # Yesterday, 13:50:05 + selector: td:nth-child(2) > div > div:last-of-type:contains("day") + optional: true + # drop New! + remove: span + filters: + - name: fuzzytime downloadvolumefactor: case: img[src="./images/gold.png"]: 0