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: