File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
patches/qbittorrent/4.4.4 Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ From 034fc8aca914f073e5478a46ce9025c862902e72 Mon Sep 17 00:00:00 2001
2+ From: "Vladimir Golovnev (Glassez)" <
[email protected] >
3+ Date: Wed, 24 Aug 2022 15:28:30 +0300
4+ Subject: [PATCH] Fix missing trackers from magnet link
5+
6+ ---
7+ src/base/bittorrent/session.cpp | 7 +++++++
8+ 1 file changed, 7 insertions(+)
9+
10+ diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp
11+ index ece6f6ee8c1..c19d68348c9 100644
12+ --- a/src/base/bittorrent/session.cpp
13+ +++ b/src/base/bittorrent/session.cpp
14+ @@ -4915,7 +4915,14 @@ void Session::handleMetadataReceivedAlert(const lt::metadata_received_alert *p)
15+
16+ if (downloadedMetadataIter != m_downloadedMetadata.end())
17+ {
18+ +#if LIBTORRENT_VERSION_NUM >= 20007
19+ + lt::torrent_info nativeInfo = *p->handle.torrent_file();
20+ + for (const lt::announce_entry &announceEntry : p->handle.trackers())
21+ + nativeInfo.add_tracker(announceEntry.url, announceEntry.tier);
22+ + const TorrentInfo metadata {nativeInfo};
23+ +#else
24+ const TorrentInfo metadata {*p->handle.torrent_file()};
25+ +#endif
26+
27+ m_downloadedMetadata.erase(downloadedMetadataIter);
28+ --m_extraLimit;
You can’t perform that action at this time.
0 commit comments