mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Add more RSS debug
This commit is contained in:
parent
1c6ef50b77
commit
d93a63e01a
@ -240,9 +240,11 @@ 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()) {
|
||||
// Item does not have a guid, fall back to some other identifier
|
||||
|
@ -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…
Reference in New Issue
Block a user