From 91b442d4f74321da0fd94c4907f279cad5d7876e Mon Sep 17 00:00:00 2001 From: Damien Caliste Date: Thu, 7 Dec 2023 13:56:26 +0100 Subject: [PATCH] Fix cover download using Quasar cover providers. katastrofos.net is now using secure HTTP, replying with a 301 moved permanently when polled on HTTP only. Avoid HTML parsing on the result by using the query.php method instead of the HTML frontend provided by index.php. --- src/loadwebimage.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/loadwebimage.cpp b/src/loadwebimage.cpp index ccf0be2..d438547 100644 --- a/src/loadwebimage.cpp +++ b/src/loadwebimage.cpp @@ -158,9 +158,8 @@ void WebThread::checkAll() //QString url = "http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key=7f338c7458e7d1a9a6204221ff904ba1"; // QUASAR - QString url = "http://coverart.katastrophos.net/index.php?"; - url += "&artist="+QUrl::toPercentEncoding(artist)+"&album="+QUrl::toPercentEncoding(album)+"&search=Search"; - + QString url = "https://coverart.katastrophos.net/query.php?"; + url += "&artist="+QUrl::toPercentEncoding(artist)+"&album="+QUrl::toPercentEncoding(album)+"&mode=imageurls&limit=1"; //AMAZON - SIMPLE @@ -211,16 +210,9 @@ void WebThread::downloaded(QNetworkReply *respuesta) QString tmp = datos1; - //QUASAR - if (tmp.contains("