This commit is contained in:
Lukas Schulz 2020-12-20 12:17:56 +01:00
parent fe4f4d9c45
commit 3dd8597414

View file

@ -93,6 +93,8 @@ def showImage(image, offset_x = 0, offset_y = 0):
def drawCanvas(): def drawCanvas():
canvas = Image.new('RGB', (192, 128), color = 'black') canvas = Image.new('RGB', (192, 128), color = 'black')
cover_art = get_track() cover_art = get_track()
if (cover_art is None):
return
if(is_playing): if(is_playing):
canvas.paste(cover_art,(0,96)) canvas.paste(cover_art,(0,96))
songinfo = ImageDraw.Draw(canvas) songinfo = ImageDraw.Draw(canvas)