From 7371c29e6967b5fd34c1aecbe1fc74f298df527b Mon Sep 17 00:00:00 2001 From: Muki Date: Mon, 5 Dec 2022 12:48:04 +0100 Subject: [PATCH] fix: item should be indexed with final url, not orig url --- src/contentserver.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/contentserver.cpp b/src/contentserver.cpp index fa628b38..ff4704c0 100644 --- a/src/contentserver.cpp +++ b/src/contentserver.cpp @@ -2157,7 +2157,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2( if (QThread::currentThread()->isInterruptionRequested()) { qWarning() << "thread interruption was requested => aborting request"; - return reply->abort(); + reply->abort(); + return; } qDebug() << ">> received bytes for:" @@ -2185,7 +2186,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2( if (QThread::currentThread()->isInterruptionRequested()) { qWarning() << "thread interruption was requested => aborting request"; - return reply->abort(); + reply->abort(); + return; } if (reply->rawHeaderPairs().isEmpty()) return; @@ -2392,7 +2394,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2( } reply->deleteLater(); - return m_metaCache.insert(url, meta); + + return m_metaCache.insert(meta.url, meta); } QHash::iterator