|
|
@ -33,7 +33,6 @@ |
|
|
|
#include <algorithm> |
|
|
|
#include <algorithm> |
|
|
|
#include <vector> |
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
|
|
#include <QDebug> |
|
|
|
|
|
|
|
#include <QDir> |
|
|
|
#include <QDir> |
|
|
|
#include <QJsonArray> |
|
|
|
#include <QJsonArray> |
|
|
|
#include <QJsonDocument> |
|
|
|
#include <QJsonDocument> |
|
|
@ -195,7 +194,8 @@ bool Feed::hasError() const |
|
|
|
void Feed::handleDownloadFinished(const Net::DownloadResult &result) |
|
|
|
void Feed::handleDownloadFinished(const Net::DownloadResult &result) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (result.status == Net::DownloadStatus::Success) { |
|
|
|
if (result.status == Net::DownloadStatus::Success) { |
|
|
|
qDebug() << "Successfully downloaded RSS feed at" << result.url; |
|
|
|
LogMsg(tr("RSS feed at '%1' is successfully downloaded. Starting to parse it.") |
|
|
|
|
|
|
|
.arg(result.url)); |
|
|
|
// Parse the download RSS
|
|
|
|
// Parse the download RSS
|
|
|
|
m_parser->parse(result.data); |
|
|
|
m_parser->parse(result.data); |
|
|
|
} |
|
|
|
} |
|
|
|