I try to get magnet links from a torrent file, according to libtorrent doc with this code :
info = lt.torrent_info(t) # t is a torrent file
return(lt.make_magnet_uri(info))
It returns a link :
magnet:?xt=urn:btih:YC5BHBHYDFYZOJRMD5BYGA2QRRXVRGAM&dn=BTshare.ogv
But this link doesn't work. (Note there is no problem with the torrent file).
So, I tried to retrieve magnet link of this torrent with transmission. It turns out that the result is different :
magnet:?xt=urn:btih:c0ba1384f8197197262c1f438303508c6f58980c&dn=BTshare.ogv
So I think there is a problem with the way I use python-libtorrent to get magnet link. Does anyone has a working example?
Regards.