Support custom save path / label for RSS feeds using magnet links

This commit is contained in:
Christophe Dumez
2012-06-24 16:46:41 +03:00
parent e8cd92e245
commit 11e0b7c9b5
3 changed files with 18 additions and 5 deletions

View File

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