1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 22:23:20 +00:00

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.
This commit is contained in:
Garfield69 2021-09-17 16:47:38 +12:00
parent cdecd9d09a
commit bb8d6fe827

View file

@ -57,9 +57,22 @@ settings:
asc: asc asc: asc
download: 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: selectors:
- selector: a[href^="magnet:?xt"] infohash:
hash:
selector: a[href^="magnet:?xt"]
attribute: href 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: search:
paths: paths: