From 88a24cad1e36d5ad288b739270ba212b5e7ed3b3 Mon Sep 17 00:00:00 2001 From: morpheus133 Date: Wed, 27 Mar 2019 21:10:52 +0100 Subject: [PATCH] bithumen: PublishDate to torrents from current year was handled wrongly. (#4978) --- src/Jackett.Common/Definitions/bithumen.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/bithumen.yml b/src/Jackett.Common/Definitions/bithumen.yml index 3dc635187..2d0a87c5d 100644 --- a/src/Jackett.Common/Definitions/bithumen.yml +++ b/src/Jackett.Common/Definitions/bithumen.yml @@ -135,13 +135,24 @@ - name: replace args: ["×", ""] date: - selector: td:nth-child(5) + selector: td:nth-child(5):contains('.') + optional: true + remove: font + filters: + - name: replace + args: [". ", " "] + - name: prepend + args: "2019." + - name: re_replace + args: ["([0-9]{4}).([0-9]+).([0-9]+) (.*)", "$2.$3.$1 $4"] + date: + selector: td:nth-child(5):contains('ma'), td:nth-child(5):contains("tegnap"), td:nth-child(5):contains('-') + optional: true remove: font filters: - name: replace args: ["ma", "today"] - name: replace args: ["tegnap", "yesterday"] - description: selector: td:nth-child(2) > div