This commit is contained in:
Lukas Schulz 2020-12-19 22:44:06 +01:00
parent c53e992f0d
commit d03a44b7c2

View file

@ -33,6 +33,7 @@ screen = RGBMatrix(options = options) #pygame.display.set_mode(self.size, self.f
token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
def get_track():
print('getting info')
sp = spotipy.Spotify(auth=token)
track = sp.currently_playing()
print(track['is_playing'])