From b151a40c6dc5bdaa21bfd11451bc49438324e642 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 13:19:49 +0100 Subject: [PATCH] yes. --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 773a69a..09dbeee 100644 --- a/main.py +++ b/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)