1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-16 10:38:53 +01:00

Ignore replies not containing images from Discogs

This commit is contained in:
Jonas Kvinge 2020-05-01 12:02:15 +02:00
parent eb4ce1feab
commit 57c1358ded

View File

@ -309,8 +309,13 @@ void DiscogsCoverProvider::HandleReleaseReply(QNetworkReply *reply, const int se
return;
}
if (!json_obj.contains("artists") || !json_obj.contains("title") || !json_obj.contains("images")) {
Error("Json reply object is missing artists, title or images.");
if (!json_obj.contains("artists") || !json_obj.contains("title")) {
Error("Json reply object is missing artists or title.", json_obj);
EndSearch(search, release);
return;
}
if (!json_obj.contains("images")) {
EndSearch(search, release);
return;
}