Replace Spotify username/password with access token

This commit is contained in:
Jonas Kvinge
2024-09-28 00:09:23 +02:00
parent ca8aa40034
commit dae4943593
8 changed files with 11 additions and 82 deletions

View File

@@ -246,10 +246,7 @@ void EngineBase::ReloadSettings() {
#ifdef HAVE_SPOTIFY
s.beginGroup(SpotifySettingsPage::kSettingsGroup);
spotify_username_ = s.value("username").toString();
QByteArray password = s.value("password").toByteArray();
if (password.isEmpty()) spotify_password_.clear();
else spotify_password_ = QString::fromUtf8(QByteArray::fromBase64(password));
spotify_access_token_ = s.value("access_token").toString();
s.endGroup();
#endif