mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 13:27:40 +01:00
Fix error handling
This commit is contained in:
parent
99f154be70
commit
a603e112e7
@ -371,8 +371,8 @@ void ListenBrainzScrobbler::UpdateNowPlayingRequestFinished(QNetworkReply *reply
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (json_obj.contains("error") && json_obj.contains("error_description")) {
|
if (json_obj.contains("code") && json_obj.contains("error_description")) {
|
||||||
QString error_code = json_obj["error"].toString();
|
QString error_code = json_obj["code"].toString();
|
||||||
QString error_desc = json_obj["error_description"].toString();
|
QString error_desc = json_obj["error_description"].toString();
|
||||||
Error(error_desc);
|
Error(error_desc);
|
||||||
return;
|
return;
|
||||||
@ -485,8 +485,8 @@ void ListenBrainzScrobbler::ScrobbleRequestFinished(QNetworkReply *reply, QList<
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (json_obj.contains("error") && json_obj.contains("error_description")) {
|
if (json_obj.contains("code") && json_obj.contains("error_description")) {
|
||||||
QString error_code = json_obj["error"].toString();
|
QString error_code = json_obj["code"].toString();
|
||||||
QString error_desc = json_obj["error_description"].toString();
|
QString error_desc = json_obj["error_description"].toString();
|
||||||
Error(error_desc);
|
Error(error_desc);
|
||||||
cache_->ClearSent(list);
|
cache_->ClearSent(list);
|
||||||
|
Loading…
Reference in New Issue
Block a user