I was searching how to pass an argument in torrent_info() function during the use of magnet links in libtorrent. Especially my target is to analyze peers and pieces. With the use of .torrent file the process is obvious throw other given paradigms in this site:
e = lt.bdecode(open("torrent.torrent", 'rb').read())
info = lt.torrent_info(e)
But what happens with the magnet 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 "e" of the .torrent process in magnet links case in order to be able to use torrent_info function properly?