From fc060d64685bcaeaa9d21370b295c2a4e36a139b Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 4 Sep 2018 15:49:12 +0200 Subject: [PATCH] BitHUmen: imporve download link handling --- src/Jackett.Common/Definitions/bithumen.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/bithumen.yml b/src/Jackett.Common/Definitions/bithumen.yml index 269f48368..3dc635187 100644 --- a/src/Jackett.Common/Definitions/bithumen.yml +++ b/src/Jackett.Common/Definitions/bithumen.yml @@ -69,9 +69,18 @@ filters: - name: andmatch fields: +# download button can be disbled in the profile, use details link instead +# download: +# selector: a[href^="download.php/"] +# attribute: href download: - selector: a[href^="download.php/"] + selector: a[href^="details.php?id="] attribute: href + filters: + - name: replace + args: ["details.php?id=", "download.php/"] + - name: append + args: "/invalid.torrent" title: selector: a[href^="details.php?id="] title: