mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-07 03:16:40 +08:00
parent
4a56c3f5df
commit
e331db077c
@ -4915,7 +4915,14 @@ void Session::handleMetadataReceivedAlert(const lt::metadata_received_alert *p)
|
||||
|
||||
if (downloadedMetadataIter != m_downloadedMetadata.end())
|
||||
{
|
||||
#if LIBTORRENT_VERSION_NUM >= 20007
|
||||
lt::torrent_info nativeInfo = *p->handle.torrent_file();
|
||||
for (const lt::announce_entry &announceEntry : p->handle.trackers())
|
||||
nativeInfo.add_tracker(announceEntry.url, announceEntry.tier);
|
||||
const TorrentInfo metadata {nativeInfo};
|
||||
#else
|
||||
const TorrentInfo metadata {*p->handle.torrent_file()};
|
||||
#endif
|
||||
|
||||
m_downloadedMetadata.erase(downloadedMetadataIter);
|
||||
--m_extraLimit;
|
||||
|
Loading…
Reference in New Issue
Block a user