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
1 changed files with 14 additions and 1 deletions

View File

@ -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: