pythonlibtorrent

How to use LibTorrent for python to get information about the distribution?


I would like to get the distribution data BEFORE uploading. All there is is a magnet link or .torrent file. What do I need to do?


Solution

  • The question was incorrectly asked by me. I needed to find the size of all the files in the torrent. This is done using:

    handle = lt.add_magnet_uri(ses, url, params)

    handle.status().total_wanted