|
|
@ -221,9 +221,13 @@ RssArticlePtr xmlToRssArticle(RssFeed* parent, QXmlStreamReader& xml) |
|
|
|
QDateTime date; |
|
|
|
QDateTime date; |
|
|
|
QString author; |
|
|
|
QString author; |
|
|
|
|
|
|
|
|
|
|
|
Q_ASSERT(xml.isStartElement() && xml.name() == "item"); |
|
|
|
while(!xml.atEnd()) { |
|
|
|
|
|
|
|
xml.readNext(); |
|
|
|
|
|
|
|
|
|
|
|
while (xml.readNextStartElement()) { |
|
|
|
if(xml.isEndElement() && xml.name() == "item") |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (xml.isStartElement()) { |
|
|
|
if (xml.name() == "title") |
|
|
|
if (xml.name() == "title") |
|
|
|
title = xml.readElementText(); |
|
|
|
title = xml.readElementText(); |
|
|
|
else if (xml.name() == "enclosure") { |
|
|
|
else if (xml.name() == "enclosure") { |
|
|
@ -240,9 +244,6 @@ RssArticlePtr xmlToRssArticle(RssFeed* parent, QXmlStreamReader& xml) |
|
|
|
author = xml.readElementText(); |
|
|
|
author = xml.readElementText(); |
|
|
|
else if (xml.name() == "guid") |
|
|
|
else if (xml.name() == "guid") |
|
|
|
guid = xml.readElementText(); |
|
|
|
guid = xml.readElementText(); |
|
|
|
else { |
|
|
|
|
|
|
|
qDebug() << "Skipping item tag: " << xml.name(); |
|
|
|
|
|
|
|
xml.skipCurrentElement(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|