diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-10-01 02:03:43.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-10-01 01:48:04.000000000 +0000 @@ -12,7 +12,4 @@ #if !defined(ANDROID) && (BOOST_VERSION >= 108100) // boost::json since 1.75, we allow it since 1.81 due to std::string_view compatibility #include -#include -#include -#include #define JSON_SUPPORTED #endif @@ -334,26 +331,4 @@ } }, - { - "magnetLink", [](std::shared_ptr torrent) - { - std::string hexHash; - boost::algorithm::hex (torrent->GetInfoHash ().begin(), torrent->GetInfoHash ().end(), std::back_inserter(hexHash)); - std::string magnet("magnet:?xt=urn:btih:"); - magnet += hexHash; - if (!torrent->GetName ().empty ()) - { - magnet += "&dn="; - boost::urls::encoding_opts opts; - opts.space_as_plus = true; - magnet += boost::urls::encode (torrent->GetName (), boost::urls::grammar::alnum_chars, opts); - } - if (!torrent->GetAnnounce ().empty ()) - { - magnet += "&tr="; - magnet += boost::core::string_view (boost::urls::url (torrent->GetAnnounce ())); - } - return boost::json::value(magnet); - } - }, { "pieces", [](std::shared_ptr torrent) {