diff --git a/src/gui/rss/rssparser.cpp b/src/gui/rss/rssparser.cpp index b1ab60359..3c9a0030d 100644 --- a/src/gui/rss/rssparser.cpp +++ b/src/gui/rss/rssparser.cpp @@ -283,6 +283,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(); @@ -403,6 +406,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();