[RSS] Improve error handling when a RSS feed doesn't contain torrents

This commit is contained in:
ngosang
2015-08-04 02:43:45 +02:00
committed by sledgehammer999
parent 6dc82df368
commit 7cecad4e82
3 changed files with 10 additions and 2 deletions

View File

@@ -352,6 +352,8 @@ void RSSImp::downloadSelectedTorrents()
RssArticlePtr article = feed->getItem(item->data(Article::IdRole).toString());
if (!article) continue;
if (article->torrentUrl().isEmpty())
continue;
QString torrentLink = article->torrentUrl();
// Check if it is a magnet link
if (torrentLink.startsWith("magnet:", Qt::CaseInsensitive)) {