This commit is contained in:
Lukas Schulz 2020-12-20 13:51:16 +01:00
parent f3038a7242
commit 158c6df195

View file

@ -102,7 +102,7 @@ def drawCanvas():
was_playing = is_playing
cover_art = get_track()
global is_scrolling_art
if (cover_art is None or is_scrolling_art):
if (cover_art is None):
return
if(was_playing and not is_playing):
is_scrolling_art = True
@ -113,6 +113,8 @@ def drawCanvas():
is_scrolling_art = True
scroll = threading.Thread(target=scrollUpSongInfo)
scroll.start()
if is_scrolling_art:
return
if(is_playing):
canvas.paste(cover_art,(cover_art_offset_x,cover_art_offset_y))
songinfo = ImageDraw.Draw(canvas)