Browse Source

Add more RSS debug

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
d93a63e01a
  1. 4
      src/rss/rssarticle.cpp
  2. 1
      src/rss/rssfeed.cpp

4
src/rss/rssarticle.cpp

@ -240,8 +240,10 @@ RssArticlePtr xmlToRssArticle(RssFeed* parent, QXmlStreamReader& xml) @@ -240,8 +240,10 @@ RssArticlePtr xmlToRssArticle(RssFeed* parent, QXmlStreamReader& xml)
author = xml.readElementText();
else if (xml.name() == "guid")
guid = xml.readElementText();
else
else {
qDebug() << "Skipping item tag: " << xml.name();
xml.skipCurrentElement();
}
}
if (guid.isEmpty()) {

1
src/rss/rssfeed.cpp

@ -229,6 +229,7 @@ void RssFeed::parseRSSChannel(QXmlStreamReader& xml) @@ -229,6 +229,7 @@ void RssFeed::parseRSSChannel(QXmlStreamReader& xml)
}
else if (xml.name() == "item") {
RssArticlePtr article = xmlToRssArticle(this, xml);
qDebug() << "Found RSS Item, valid: " << (article ? "True" : "False");
if (article) {
QString guid = article->guid();
if (m_articles.contains(guid) && m_articles[guid]->isRead())

Loading…
Cancel
Save