Browse Source

Merge pull request #13040 from glassez/fix-rss

Fix RSS article is not marked as "read" when torrent is downloaded
adaptive-webui-19844
Vladimir Golovnev 4 years ago committed by GitHub
parent
commit
602e6b5263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/base/bittorrent/session.cpp
  2. 3
      src/base/rss/rss_autodownloader.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:

3
src/base/rss/rss_autodownloader.cpp

@ -401,8 +401,7 @@ void AutoDownloader::processJob(const QSharedPointer<ProcessingJob> &job) @@ -401,8 +401,7 @@ void AutoDownloader::processJob(const QSharedPointer<ProcessingJob> &job)
}
else {
// waiting for torrent file downloading
// normalize URL string via QUrl since DownloadManager do it
m_waitingJobs.insert(QUrl(torrentURL).toString(), job);
m_waitingJobs.insert(torrentURL, job);
}
return;

Loading…
Cancel
Save