design and color changes

This commit is contained in:
Brandon4466
2024-05-01 00:08:41 -07:00
parent 555dae121c
commit bd5845dd04
2 changed files with 17 additions and 15 deletions

View File

@@ -7,6 +7,8 @@ import _canvas as SpotifyCanvas
import time
import syncedlyrics
dev = 0
app = Flask(__name__)
if os.path.exists('client_id'):
@@ -18,7 +20,6 @@ if os.path.exists('client_secret'):
redirect_uri = 'http://127.0.0.1:8888/callback'
encoded_creds = base64.b64encode(client_id.encode() + b':' + client_secret.encode()).decode("utf-8")
headers = {
"client_id": client_id,
"response_type": "code",
@@ -101,6 +102,7 @@ def appdata():
return { 'reload': True }
currently_playing = requests.get("https://api.spotify.com/v1/me/player/currently-playing", headers=user_headers)
if currently_playing.content:
if currently_playing.json()["is_playing"] is True and currently_playing.json()["item"]["id"] == request.args.get('id'):
print("QUICK" + str(time.time() - stime))