This commit is contained in:
2024-05-08 14:16:52 -07:00
parent d3a4e97180
commit 7eff3f8d78
3 changed files with 40 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ def appdata():
currently_playing = requests.get("https://api.spotify.com/v1/me/player/currently-playing", headers=user_headers)
# needs to add an if statement that says if song is not playing then, becuase when nothing is playing the json response is different.
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))