JohnDoee / magnet2torrent

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

Torrent File not saving in local folder #5

Open sagnikpal opened 3 years ago

sagnikpal commented 3 years ago

I am running the code from Jupyter Notebook.

While the filename has fetched the torrent, I am unable to save the torrent to local folder from where the notebook is running.

`from magnet2torrent import Magnet2Torrent, FailedToFetchException

magnet_link = ""

async def fetch_that_torrent(): m2t = Magnet2Torrent(magnet_link) try: filename, torrent_data = await m2t.retrieve_torrent() print(filename) except FailedToFetchException: print("Failed")

await fetch_that_torrent()`