mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
parent
7c37c5c06f
commit
5f623e32c4
@ -591,16 +591,16 @@ void Parser::parse_impl(const QByteArray &feedData)
|
|||||||
xml.skipCurrentElement();
|
xml.skipCurrentElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!foundChannel)
|
if (xml.hasError())
|
||||||
{
|
|
||||||
m_result.error = tr("Invalid RSS feed.");
|
|
||||||
}
|
|
||||||
else if (xml.hasError())
|
|
||||||
{
|
{
|
||||||
m_result.error = tr("%1 (line: %2, column: %3, offset: %4).")
|
m_result.error = tr("%1 (line: %2, column: %3, offset: %4).")
|
||||||
.arg(xml.errorString()).arg(xml.lineNumber())
|
.arg(xml.errorString()).arg(xml.lineNumber())
|
||||||
.arg(xml.columnNumber()).arg(xml.characterOffset());
|
.arg(xml.columnNumber()).arg(xml.characterOffset());
|
||||||
}
|
}
|
||||||
|
else if (!foundChannel)
|
||||||
|
{
|
||||||
|
m_result.error = tr("Invalid RSS feed.");
|
||||||
|
}
|
||||||
|
|
||||||
emit finished(m_result);
|
emit finished(m_result);
|
||||||
m_result.articles.clear(); // clear articles only
|
m_result.articles.clear(); // clear articles only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user