Open dshooo opened 3 months ago
Hello! I want to convert a magnet link to a torrent file. For the test I took this code:
import asyncio from magnet2torrent import Magnet2Torrent, FailedToFetchException async def fetch_that_torrent(): m2t = Magnet2Torrent("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") try: filename, torrent_data = await m2t.retrieve_torrent() except FailedToFetchException: print("Failed") asyncio.run(fetch_that_torrent())
I don't understand why, but this code always returns "Failed"...
Please tell me what I'm doing wrong? How can I enable debug mode?
Hello! I want to convert a magnet link to a torrent file. For the test I took this code:
I don't understand why, but this code always returns "Failed"...
Please tell me what I'm doing wrong? How can I enable debug mode?