Browse Source

Emit signal when redirected to Magnet

adaptive-webui-19844
Vladimir Golovnev (Glassez) 4 years ago
parent
commit
1e86c76e8a
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 1
      src/base/bittorrent/session.cpp

1
src/base/bittorrent/session.cpp

@ -1782,6 +1782,7 @@ void Session::handleDownloadFinished(const Net::DownloadResult &result) @@ -1782,6 +1782,7 @@ void Session::handleDownloadFinished(const Net::DownloadResult &result)
, MagnetUri(), TorrentInfo::load(result.data));
break;
case Net::DownloadStatus::RedirectedToMagnet:
emit downloadFromUrlFinished(result.url);
addTorrent_impl(CreateTorrentParams(m_downloadedTorrents.take(result.url)), MagnetUri(result.magnet));
break;
default:

Loading…
Cancel
Save