From bcdc1f98fd4a103be8b1a2d7bb4eb93b49f8b8ea Mon Sep 17 00:00:00 2001 From: lizzykerrigan Date: Mon, 24 Aug 2020 16:11:45 +0100 Subject: [PATCH] fix 500 error when listening to podcasts --- api/spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/spotify.py b/api/spotify.py index 616a4cc..d3fa64b 100644 --- a/api/spotify.py +++ b/api/spotify.py @@ -77,7 +77,7 @@ def makeSVG(data): contentBar = "".join(["
" for i in range(barCount)]) barCSS = barGen(barCount) - if data == {}: + if data == {} or data["name"] == 'None': #contentBar = "" #Shows/Hides the EQ bar if no song is currently playing recentPlays = recentlyPlayed() recentPlaysLength = len(recentPlays["items"])