mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Add more RSS debug
This commit is contained in:
parent
497e2e92f8
commit
1c6ef50b77
1 changed files with 9 additions and 2 deletions
|
@ -211,6 +211,7 @@ QString RssFeed::iconUrl() const {
|
|||
|
||||
void RssFeed::parseRSSChannel(QXmlStreamReader& xml)
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
Q_ASSERT(xml.isStartElement() && xml.name() == "channel");
|
||||
|
||||
while (xml.readNextStartElement()) {
|
||||
|
@ -234,8 +235,10 @@ void RssFeed::parseRSSChannel(QXmlStreamReader& xml)
|
|||
article->markAsRead();
|
||||
m_articles[guid] = article;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
qDebug() << "Skipping RSS tag: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -262,8 +265,12 @@ bool RssFeed::parseRSS(QIODevice* device)
|
|||
xml.skipCurrentElement();
|
||||
}
|
||||
|
||||
if (xml.error()) {
|
||||
qWarning() << "Error parsing RSS document: " << xml.errorString();
|
||||
}
|
||||
|
||||
if (!found_channel) {
|
||||
qDebug() << m_url << " is not a valid RSS feed";
|
||||
qWarning() << m_url << " is not a valid RSS feed";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue