Remove whitespace from arl and Spotify clientID and clientSecret

This commit is contained in:
RemixDev
2020-07-31 14:09:14 +02:00
parent ffb803cf3c
commit 41f1e44a6f
4 changed files with 6 additions and 3 deletions

View File

@ -62,6 +62,8 @@ class SpotifyHelper:
return self.credentials
def setCredentials(self, spotifyCredentials):
spotifyCredentials['clientId'] = spotifyCredentials['clientId'].strip()
spotifyCredentials['clientSecret'] = spotifyCredentials['clientSecret'].strip()
with open(path.join(self.configFolder, 'authCredentials.json'), 'w') as f:
json.dump(spotifyCredentials, f, indent=2)
self.credentials = spotifyCredentials