yes.
This commit is contained in:
parent
8e98909651
commit
7f01c9ed47
1 changed files with 2 additions and 3 deletions
5
main.py
5
main.py
|
@ -53,7 +53,6 @@ font = ImageFont.load_default()
|
||||||
|
|
||||||
|
|
||||||
def get_track():
|
def get_track():
|
||||||
main()
|
|
||||||
print('getting current song info')
|
print('getting current song info')
|
||||||
sp = spotipy.Spotify(auth=token)
|
sp = spotipy.Spotify(auth=token)
|
||||||
track = sp.currently_playing()
|
track = sp.currently_playing()
|
||||||
|
@ -227,7 +226,7 @@ def get_access_token():
|
||||||
token_info = refresh_access_token(token_info)
|
token_info = refresh_access_token(token_info)
|
||||||
token = token_info["access_token"]
|
token = token_info["access_token"]
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
@ -237,7 +236,7 @@ if __name__ == "__main__":
|
||||||
get_access_token()
|
get_access_token()
|
||||||
drawCanvas()
|
drawCanvas()
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue