aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-02 13:11:16 -0400
committerKen Moore <moorekou@gmail.com>2016-06-02 13:11:16 -0400
commit78cd7b91e4e6cdc0f531affacd6fd94af1ea45bc (patch)
treee9f2ae51536bee2debb888bf3ef4a20ece67fe02 /src-qt5/core
parentAdd a new OS function: RSSFeeds() (diff)
downloadlumina-78cd7b91e4e6cdc0f531affacd6fd94af1ea45bc.tar.gz
lumina-78cd7b91e4e6cdc0f531affacd6fd94af1ea45bc.tar.bz2
lumina-78cd7b91e4e6cdc0f531affacd6fd94af1ea45bc.zip
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)
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/rssfeeder/RSSObjects.cpp2
1 files changed, 1 insertions, 1 deletions
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); }
bgstack15