fixed bug in make_magnet_uri
This commit is contained in:
parent
8c3f9571de
commit
c50d08f75f
|
@ -47,7 +47,8 @@ namespace libtorrent
|
||||||
|
|
||||||
std::string name = handle.name();
|
std::string name = handle.name();
|
||||||
|
|
||||||
ret << "magnet:?xt=urn:btih:" << base32encode((char*)handle.info_hash().begin());
|
ret << "magnet:?xt=urn:btih:" << base32encode(
|
||||||
|
std::string((char*)handle.info_hash().begin(), 20));
|
||||||
if (!name.empty())
|
if (!name.empty())
|
||||||
ret << "&dn=" << escape_string(name.c_str(), name.length());
|
ret << "&dn=" << escape_string(name.c_str(), name.length());
|
||||||
torrent_status st = handle.status();
|
torrent_status st = handle.status();
|
||||||
|
|
Loading…
Reference in New Issue