From d93a63e01a3433e9f56fb151df6c5fe4bdf39373 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 11 Jul 2012 18:44:43 +0300 Subject: [PATCH] Add more RSS debug --- src/rss/rssarticle.cpp | 4 +++- src/rss/rssfeed.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rss/rssarticle.cpp b/src/rss/rssarticle.cpp index 12de969c4..c4636be63 100644 --- a/src/rss/rssarticle.cpp +++ b/src/rss/rssarticle.cpp @@ -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()) { diff --git a/src/rss/rssfeed.cpp b/src/rss/rssfeed.cpp index 06a43409c..df83cb716 100644 --- a/src/rss/rssfeed.cpp +++ b/src/rss/rssfeed.cpp @@ -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())