change css + bug fix

This commit is contained in:
√(noham)²
2024-03-26 18:33:48 +01:00
parent 8ae08cc047
commit bdde9c5e6c
4 changed files with 8 additions and 3 deletions

View File

@@ -90,7 +90,10 @@ def main():
persistendId = currentsong['persistent ID']
currentsong['timestamp'] = time.time()
(currentsong['artwork_url'], currentsong['itunes_url'], currentsong['artist_url']) = get_track_extras(currentsong['name'], currentsong['artist'], currentsong['album'])
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
try:
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
except:
currentsong['dominantcolor'] = [0,0,0]
printout(f"{post(currentsong)}")
timets = float(currentsong['duration'].replace(",", "."))-float(currentsong['pPosition'].replace(",", ".")) + 3
prevstatus = 'playing'