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,9 +240,11 @@ 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 else {
qDebug() << "Skipping item tag: " << xml.name();
xml.skipCurrentElement(); xml.skipCurrentElement();
} }
}
if (guid.isEmpty()) { if (guid.isEmpty()) {
// Item does not have a guid, fall back to some other identifier // Item does not have a guid, fall back to some other identifier

1
src/rss/rssfeed.cpp

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

Loading…
Cancel
Save