JohnDoee / magnet2torrent

Turn a bittorrent magnet link into a .torrent file
MIT License
63 stars 9 forks source link

Unable to fetch magnet link #10

Closed rh8056 closed 8 months ago

rh8056 commented 1 year ago

I'm trying to get a python script to download a magnet link, as a torrent file and this repository looks to do that. However, I'm unable to get it to do anything and the logging isn't giving me a lot to run with. When I run the example, I get this:

magnet2torrent --debug fetch "magnet:?xt=urn:btih:e2467cbf021192c241367b892230dc1e05c0580e&dn=ubuntu-19.10-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce&tr=https%3A%2F%2Fipv6.torrent.ubuntu.com%2Fannounce" 2023-04-20 17:43:51,221:DEBUG:asyncio:59:Using selector: EpollSelector 2023-04-20 17:43:51,222:DEBUG:magnet2torrent.magnet2torrent:115:Trying to fetch peers from https://torrent.ubuntu.com/announce 2023-04-20 17:43:51,222:DEBUG:magnet2torrent.magnet2torrent:115:Trying to fetch peers from https://ipv6.torrent.ubuntu.com/announce Unable to fetch magnet link

Is this library functional?

JohnDoee commented 8 months ago

A magnet link does not use hex as infohash, it uses base32.

rh8056 commented 8 months ago

A magnet link does not use hex as infohash, it uses base32.

I don't understand your comment.