add
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user