yes.
This commit is contained in:
parent
f3038a7242
commit
158c6df195
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue