mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Fix RSS isn't automarking articles as read
Closes: #4260, #4233, #4221, #4133
This commit is contained in:
parent
17ac4b90be
commit
696ce427a8
@ -32,6 +32,7 @@
|
|||||||
#include "rssfeed.h"
|
#include "rssfeed.h"
|
||||||
#include "rssmanager.h"
|
#include "rssmanager.h"
|
||||||
#include "core/bittorrent/session.h"
|
#include "core/bittorrent/session.h"
|
||||||
|
#include "core/bittorrent/magneturi.h"
|
||||||
#include "rssfolder.h"
|
#include "rssfolder.h"
|
||||||
#include "core/preferences.h"
|
#include "core/preferences.h"
|
||||||
#include "core/qinisettings.h"
|
#include "core/qinisettings.h"
|
||||||
@ -371,8 +372,11 @@ void RssFeed::downloadArticleTorrentIfMatching(RssDownloadRuleList* rules, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
Logger::instance()->addMessage(tr("Automatically downloading '%1' torrent from '%2' RSS feed...").arg(article->title()).arg(displayName()));
|
Logger::instance()->addMessage(tr("Automatically downloading '%1' torrent from '%2' RSS feed...").arg(article->title()).arg(displayName()));
|
||||||
connect(BitTorrent::Session::instance(), SIGNAL(downloadFromUrlFinished(QString)), article.data(), SLOT(handleTorrentDownloadSuccess(const QString&)), Qt::UniqueConnection);
|
|
||||||
connect(article.data(), SIGNAL(articleWasRead()), SLOT(handleArticleStateChanged()), Qt::UniqueConnection);
|
connect(article.data(), SIGNAL(articleWasRead()), SLOT(handleArticleStateChanged()), Qt::UniqueConnection);
|
||||||
|
if (BitTorrent::MagnetUri(torrent_url).isValid())
|
||||||
|
article->markAsRead();
|
||||||
|
else
|
||||||
|
connect(BitTorrent::Session::instance(), SIGNAL(downloadFromUrlFinished(QString)), article.data(), SLOT(handleTorrentDownloadSuccess(const QString&)), Qt::UniqueConnection);
|
||||||
|
|
||||||
BitTorrent::AddTorrentParams params;
|
BitTorrent::AddTorrentParams params;
|
||||||
params.savePath = matching_rule->savePath();
|
params.savePath = matching_rule->savePath();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user