From bb8d6fe827dd8e54d02fd57df8ca578101005aff Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 17 Sep 2021 16:47:38 +1200 Subject: [PATCH] bitsearch: use download block infohash the magnet URI on this site exceeds 2048 bytes which some interfaces will reject. So we use the infohash and build our own. --- src/Jackett.Common/Definitions/bitsearch.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/bitsearch.yml b/src/Jackett.Common/Definitions/bitsearch.yml index 320532b0f..d27e47ba6 100644 --- a/src/Jackett.Common/Definitions/bitsearch.yml +++ b/src/Jackett.Common/Definitions/bitsearch.yml @@ -57,9 +57,22 @@ settings: asc: asc download: + # the magnet URI on this site exceeds 2048 bytes which some interfaces will reject. So we use the infohash and build our own. selectors: - - selector: a[href^="magnet:?xt"] + infohash: + hash: + selector: a[href^="magnet:?xt"] attribute: href + filters: + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: a[href^="magnet:?xt"] + attribute: href + filters: + - name: regexp + args: "&dn=(.+?)$" + - name: validfilename search: paths: