mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-27 08:33:27 +01:00
proxy support inoreader
This commit is contained in:
parent
64aa45a7dc
commit
4082ce7469
@ -91,7 +91,8 @@ RootItem* InoreaderNetworkFactory::feedsCategories(bool obtain_icons) {
|
||||
bearer.toLocal8Bit() } },
|
||||
false,
|
||||
{},
|
||||
{});
|
||||
{},
|
||||
m_service->networkProxy());
|
||||
|
||||
if (result_labels.first != QNetworkReply::NetworkError::NoError) {
|
||||
return nullptr;
|
||||
@ -107,7 +108,8 @@ RootItem* InoreaderNetworkFactory::feedsCategories(bool obtain_icons) {
|
||||
bearer.toLocal8Bit() } },
|
||||
false,
|
||||
{},
|
||||
{});
|
||||
{},
|
||||
m_service->networkProxy());
|
||||
|
||||
if (result_feeds.first != QNetworkReply::NetworkError::NoError) {
|
||||
return nullptr;
|
||||
@ -134,7 +136,8 @@ QList<RootItem*> InoreaderNetworkFactory::getLabels() {
|
||||
bearer.toLocal8Bit() } },
|
||||
false,
|
||||
{},
|
||||
{});
|
||||
{},
|
||||
m_service->networkProxy());
|
||||
QJsonDocument json_lbls = QJsonDocument::fromJson(output);
|
||||
|
||||
for (const QJsonValue& lbl_val : json_lbls.object()["tags"].toArray()) {
|
||||
@ -188,7 +191,8 @@ QList<Message> InoreaderNetworkFactory::messages(ServiceRoot* root, const QStrin
|
||||
bearer.toLocal8Bit() } },
|
||||
false,
|
||||
{},
|
||||
{});
|
||||
{},
|
||||
m_service->networkProxy());
|
||||
|
||||
if (result.first != QNetworkReply::NetworkError::NoError) {
|
||||
qCriticalNN << LOGSEC_INOREADER
|
||||
@ -250,10 +254,14 @@ QNetworkReply::NetworkError InoreaderNetworkFactory::editLabels(const QString& s
|
||||
QByteArray output;
|
||||
auto result = NetworkFactory::performNetworkOperation(batch_final_url,
|
||||
timeout,
|
||||
QByteArray(),
|
||||
{},
|
||||
output,
|
||||
QNetworkAccessManager::Operation::GetOperation,
|
||||
headers);
|
||||
headers,
|
||||
false,
|
||||
{},
|
||||
{},
|
||||
m_service->networkProxy());
|
||||
|
||||
if (result.first != QNetworkReply::NetworkError::NoError) {
|
||||
return result.first;
|
||||
|
Loading…
Reference in New Issue
Block a user