@@ -148,7 +148,7 @@ std::string AlbumArtProvider::get_lastfm_url(const albuminfo &ai) {
148148 loop.exec();
149149
150150 if (reply->error() != QNetworkReply::NoError) {
151− qDebug() << "Error getting the XML:" << reply->errorString();
151+ qWarning() << "Error getting the XML:" << reply->errorString();
152152 return "";
153153 }
154154
@@ -162,6 +162,12 @@ std::string AlbumArtProvider::get_lastfm_url(const albuminfo &ai) {
162162 query.evaluateTo(&image);
163163 image = image.trimmed();
164164
165+ // return empty if last.fm tries to offer their default
166+ // fallback artwork
167+ if (image.contains("catalogue/noimage")) {
168+ return "";
169+ }
170+
165171 return image.toStdString();
166172}
167173
@@ -176,17 +182,17 @@ bool AlbumArtProvider::download_and_store(const std::string &image_url, const st
176182 loop.exec();
177183
178184 if (reply->error() != QNetworkReply::NoError) {
179− qDebug() << "Error getting the image:" << reply->errorString();
185+ qWarning() << "Error getting the image:" << reply->errorString();
180186 return false;
181187 }
182188
183189 QFile file(fileName);
184190 if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
185− qDebug() << "Could not open file for writing:" << file.errorString();
191+ qWarning() << "Could not open file for writing:" << file.errorString();
186192 return false;
187193 }
188194 if (file.write(reply->readAll()) == -1){
189− qDebug() << "Could not write the image:" << file.error();
195+ qWarning() << "Could not write the image:" << file.error();
190196 return false;
191197 }
192198