From dea79aff49a281f2766c7748052e0424ccf246dc Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 12 Aug 2026 12:05:03 +0200 Subject: [PATCH] getFeed risolve gli URL relativi (fix 'Protocol "" is unknown' sui link di categoria) --- src/apiclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apiclient.cpp b/src/apiclient.cpp index 846b3d7..5cfa8a3 100644 --- a/src/apiclient.cpp +++ b/src/apiclient.cpp @@ -71,8 +71,10 @@ QNetworkReply *ApiClient::startGet(const QUrl &url) void ApiClient::getFeed(const QString &url) { - qDebug() << "getFeed request:" << url; - QNetworkReply *reply = startGet(QUrl(url)); + // i link dei feed OPDS sono spesso relativi (/opds/new): risolvi contro il server + const QString resolved = resolveUrl(url); + qDebug() << "getFeed request:" << resolved; + QNetworkReply *reply = startGet(QUrl(resolved)); connect(reply, &QNetworkReply::finished, this, [this, reply]() { reply->deleteLater(); const int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();