libkiwix icon indicating copy to clipboard operation
libkiwix copied to clipboard

Magnet link doesn't work with qbittorent

Open rgaudin opened this issue 1 year ago • 2 comments

libkiwix generated magnet link starts with magnet:?&xt=. While this is accepted by most clients, it's a bit abusing the query string as there's an empty first field. It should really be magnet:?xt= as xt is the first query parameter.

Currently:

magnet:
?&xt=urn:btih:e74186d5df61550a1f8206f9bc01e38087ececee
&xt=urn:md5:f07bbc038357a3186ec65c304488e5ee
&xl=1380001806
&dn=noted.lol_en_all_2024-10.zim
&as=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim
&tr=http%3A%2F%2Ftracker.openzim.org%3A6969%2Fannounce
&tr=udp%3A%2F%2Ftracker.openzim.org%3A6969%2Fannounce%0A
&ws=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim
&xs=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim.torrent

Expected:

magnet:
?xt=urn:btih:e74186d5df61550a1f8206f9bc01e38087ececee
&xt=urn:md5:f07bbc038357a3186ec65c304488e5ee
&xl=1380001806
&dn=noted.lol_en_all_2024-10.zim
&as=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim
&tr=http%3A%2F%2Ftracker.openzim.org%3A6969%2Fannounce
&tr=udp%3A%2F%2Ftracker.openzim.org%3A6969%2Fannounce%0A
&ws=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim
&xs=http%3A%2F%2Fdownload.kiwix.org%2Fzim%2Fzimit%2Fnoted.lol_en_all_2024-10.zim.torrent

rgaudin avatar Oct 29 '24 10:10 rgaudin