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

81 Views Asked by At

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?

1

There are 1 best solutions below

0
Wintreist On BEST ANSWER

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