Browse Source

Add more bars

add-license-1
novatorem 5 years ago
parent
commit
363d46428e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      api/spotify-playing.py

+ 2
- 2
api/spotify-playing.py View File

@ -60,7 +60,7 @@ def nowPlaying():
return response.json() return response.json()
def barGen(barCount=85):
def barGen(barCount):
barCSS = "" barCSS = ""
left = 1 left = 1
for i in range(1, barCount + 1): for i in range(1, barCount + 1):
@ -77,7 +77,7 @@ def loadImageB64(url):
return b64encode(resposne.content).decode("ascii") return b64encode(resposne.content).decode("ascii")
def makeSVG(data): def makeSVG(data):
barCount = 82
barCount = 90
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)


Loading…
Cancel
Save