yes.
This commit is contained in:
parent
05f4d71dbb
commit
b151a40c6d
1 changed files with 5 additions and 0 deletions
5
main.py
5
main.py
|
@ -37,6 +37,9 @@ cache_path="/home/pi/.cache-"+username
|
|||
|
||||
is_playing = False
|
||||
|
||||
cover_art_offset_x = 0
|
||||
cover_art_offset_y = 96
|
||||
|
||||
token = None #oauth2.SpotifyOAuth(username, scope, client_id, client_secret, redirect_uri)
|
||||
|
||||
#token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
|
||||
|
@ -187,6 +190,8 @@ if __name__ == "__main__":
|
|||
while True:
|
||||
if(is_token_expired()):
|
||||
get_access_token()
|
||||
global token
|
||||
token = refresh_access_token(token)
|
||||
drawCanvas()
|
||||
time.sleep(10)
|
||||
|
||||
|
|
Loading…
Reference in a new issue