mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
parent
1d26f4c5f7
commit
e5fe6401a0
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ MagnetUri::MagnetUri(const QString &source)
|
||||||
if (source.isEmpty()) return;
|
if (source.isEmpty()) return;
|
||||||
|
|
||||||
if (isV2Hash(source))
|
if (isV2Hash(source))
|
||||||
m_url = QString::fromLatin1("magnet:?xt=urn:btmh:") + source;
|
m_url = QString::fromLatin1("magnet:?xt=urn:btmh:1220") + source; // 0x12 0x20 is the "multihash format" tag for the SHA-256 hashing scheme.
|
||||||
else if (isV1Hash(source))
|
else if (isV1Hash(source))
|
||||||
m_url = QString::fromLatin1("magnet:?xt=urn:btih:") + source;
|
m_url = QString::fromLatin1("magnet:?xt=urn:btih:") + source;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue