This commit is contained in:
Lukas Schulz 2020-12-20 14:20:45 +01:00
parent 7f01c9ed47
commit fe13250b53

View file

@ -54,6 +54,7 @@ font = ImageFont.load_default()
def get_track(): def get_track():
print('getting current song info') print('getting current song info')
get_access_token()
sp = spotipy.Spotify(auth=token) sp = spotipy.Spotify(auth=token)
track = sp.currently_playing() track = sp.currently_playing()
if track is None: if track is None:
@ -236,7 +237,6 @@ if __name__ == "__main__":
get_access_token() get_access_token()
drawCanvas() drawCanvas()
time.sleep(10) time.sleep(10)
main()