magnet:?xt=urn:btih:2347ea6d2ccbc66475fd99d82b609e74a9461c0d&dn=Screenshot+2023-03-03+at+22.33.19.png&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fvoid.cat%3A443%2Fd%2FTPv8drWxQwo8rNyeqEFJMt
Discussion
You need the &xs= parameter pointing to the URL of the torrent file otherwise it will only work if someone is seeding (because magnets themselves do not hold the torrent metadata, only a hash of the metadata, and the metadata is required to verify the downloaded pieces, so it must be fetched first from either peers or from the &xs= URL).
Ok will add this, i think im making the piece hash wrong too, what happens on the last piece, is there any padding? I can't find clear spec.
If you add `.torrent. on the end of any void.cat url it will generate the torrent file now:
There was a bug in my handling of range requests, should be fixed in a few mins