This commit is contained in:
Lukas Schulz 2020-12-20 14:25:03 +01:00
parent fe13250b53
commit 98e3fb93d4

View file

@ -51,10 +51,10 @@ token = None #oauth2.SpotifyOAuth(username, scope, client_id, client_secret, red
font = ImageFont.load_default()
print('before get_track()')
def get_track():
print('getting current song info')
get_access_token()
sp = spotipy.Spotify(auth=token)
track = sp.currently_playing()
if track is None: