Ignore replies not containing images from Discogs
This commit is contained in:
@@ -309,8 +309,13 @@ void DiscogsCoverProvider::HandleReleaseReply(QNetworkReply *reply, const int se
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!json_obj.contains("artists") || !json_obj.contains("title") || !json_obj.contains("images")) {
|
if (!json_obj.contains("artists") || !json_obj.contains("title")) {
|
||||||
Error("Json reply object is missing artists, title or images.");
|
Error("Json reply object is missing artists or title.", json_obj);
|
||||||
|
EndSearch(search, release);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!json_obj.contains("images")) {
|
||||||
EndSearch(search, release);
|
EndSearch(search, release);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user