I was looking for how to pass an argument to the torrent_info () function while using magnetic links in libtorrent. Especially my goal is to analyze peers and pieces. Using a .torrent file, the process obviously throws other given paradigms on this site:
e = lt.bdecode(open("torrent.torrent", 'rb').read()) info = lt.torrent_info(e)
But what happens to magnetic links?
params = { 'save_path': 'C:\Python26', 'storage_mode': lt.storage_mode_t(2), 'paused': False, 'auto_managed': True, 'duplicate_is_error': True} link = "magnet:?........." handle = lt.add_magnet_uri(ses, link, params)
Which variable is equivalent to the "e" of the .torrent process in the case of magnetic links in order to be able to use the torrent_info function correctly?
source share