From e5fe6401a00c5ce4cd7de02c6ad5dfbdf1b69f4f Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 6 Aug 2021 22:04:03 +0300 Subject: [PATCH] Accept v2 infohashes for download Partially fixes #15287 --- src/base/bittorrent/magneturi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/magneturi.cpp b/src/base/bittorrent/magneturi.cpp index 99e3023e3..6f255bc9e 100644 --- a/src/base/bittorrent/magneturi.cpp +++ b/src/base/bittorrent/magneturi.cpp @@ -80,7 +80,7 @@ MagnetUri::MagnetUri(const QString &source) if (source.isEmpty()) return; 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)) m_url = QString::fromLatin1("magnet:?xt=urn:btih:") + source;