fix 500 error when listening to podcasts

This commit is contained in:
lizzykerrigan
2020-08-24 16:11:45 +01:00
parent 0778b7adde
commit bcdc1f98fd

View File

@@ -77,7 +77,7 @@ def makeSVG(data):
contentBar = "".join(["<div class='bar'></div>" for i in range(barCount)]) contentBar = "".join(["<div class='bar'></div>" for i in range(barCount)])
barCSS = barGen(barCount) barCSS = barGen(barCount)
if data == {}: if data == {} or data["name"] == 'None':
#contentBar = "" #Shows/Hides the EQ bar if no song is currently playing #contentBar = "" #Shows/Hides the EQ bar if no song is currently playing
recentPlays = recentlyPlayed() recentPlays = recentlyPlayed()
recentPlaysLength = len(recentPlays["items"]) recentPlaysLength = len(recentPlays["items"])