mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 18:46:46 +01:00
Spotify: Fix clearing access token
This commit is contained in:
parent
f4429e8c4a
commit
8509cb4743
@ -421,7 +421,7 @@ QByteArray SpotifyCoverProvider::GetReplyData(QNetworkReply *reply) {
|
|||||||
int status = obj_error["status"].toInt();
|
int status = obj_error["status"].toInt();
|
||||||
QString message = obj_error["message"].toString();
|
QString message = obj_error["message"].toString();
|
||||||
error = QString("%1 (%2)").arg(message).arg(status);
|
error = QString("%1 (%2)").arg(message).arg(status);
|
||||||
if (reply->error() == 401) access_token_.clear();
|
if (status == 401) access_token_.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user