Add support for RSS feeds using magnet links (Closes #1016379)

This commit is contained in:
Christophe Dumez
2012-06-24 10:27:32 +03:00
parent da69983e64
commit 960d8d1bc9
6 changed files with 50 additions and 19 deletions

View File

@@ -314,7 +314,10 @@ void RssFeed::downloadMatchingArticleTorrents() {
item.markAsRead();
// Download the torrent
QBtSession::instance()->addConsoleMessage(tr("Automatically downloading %1 torrent from %2 RSS feed...").arg(item.title()).arg(displayName()));
QBtSession::instance()->downloadUrlAndSkipDialog(torrent_url, matching_rule.savePath(), matching_rule.label());
if (torrent_url.startsWith("magnet:", Qt::CaseInsensitive))
QBtSession::instance()->addMagnetSkipAddDlg(torrent_url);
else
QBtSession::instance()->downloadUrlAndSkipDialog(torrent_url, matching_rule.savePath(), matching_rule.label());
}
}
}