From ee21562426640324137b137188cf6929c269000a Mon Sep 17 00:00:00 2001 From: ngosang Date: Wed, 2 Sep 2015 20:10:44 +0200 Subject: [PATCH] [RSS] Handle more types of RSS feeds --- src/gui/rss/rssparser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/rss/rssparser.cpp b/src/gui/rss/rssparser.cpp index fe4c5ab5d..fb0932d59 100644 --- a/src/gui/rss/rssparser.cpp +++ b/src/gui/rss/rssparser.cpp @@ -277,6 +277,9 @@ void RssParser::parseRssArticle(QXmlStreamReader& xml, const QString& feedUrl) } } + if (!article.contains("torrent_url") && article.contains("news_link")) + article["torrent_url"] = article["news_link"]; + if (!article.contains("id")) { // Item does not have a guid, fall back to some other identifier const QString link = article.value("news_link").toString(); @@ -397,6 +400,9 @@ void RssParser::parseAtomArticle(QXmlStreamReader& xml, const QString& feedUrl, } } + if (!article.contains("torrent_url") && article.contains("news_link")) + article["torrent_url"] = article["news_link"]; + if (!article.contains("id")) { // Item does not have a guid, fall back to some other identifier const QString link = article.value("news_link").toString();