From 78cd7b91e4e6cdc0f531affacd6fd94af1ea45bc Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 2 Jun 2016 13:11:16 -0400 Subject: Make the RSS reader support both rss version 0.91 in addition to version 2.0 (0.91 is just a more limited subset of 2.0 - all the same required fields) --- src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop') diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp index a65c195c..654a005d 100644 --- a/src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp +++ b/src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp @@ -106,7 +106,7 @@ RSSchannel RSSReader::readRSS(QByteArray bytes){ //qDebug() << "Can Read XML Stream:" << !xml.hasError(); if(xml.readNextStartElement()){ //qDebug() << " - RSS Element:" << xml.name(); - if(xml.name() == "rss" && xml.attributes().value("version") =="2.0"){ + if(xml.name() == "rss" && (xml.attributes().value("version") =="2.0" || xml.attributes().value("version") =="0.91") ){ while(xml.readNextStartElement()){ //qDebug() << " - RSS Element:" << xml.name(); if(xml.name()=="channel"){ rssinfo = readRSSChannel(&xml); } -- cgit