small fix layout
This commit is contained in:
parent
d892f6ba04
commit
bc6684ab8f
@ -91,6 +91,7 @@ def display_loop(api: Api, cfg: Dict):
|
||||
time.sleep(cfg["api_interval"])
|
||||
|
||||
elif type(data) == dict:
|
||||
current_mode = 1
|
||||
current_track = data["track"] + data["artists"][0] + data["album"]
|
||||
if current_track != last_track:
|
||||
print("updating track")
|
||||
@ -112,7 +113,7 @@ def display_loop(api: Api, cfg: Dict):
|
||||
bg.paste(img, (10, 30))
|
||||
draw = ImageDraw.Draw(bg)
|
||||
draw.text(
|
||||
(150, 40),
|
||||
(150, 28),
|
||||
"\n".join(textwrap.wrap(", ".join(data["artists"]), width=16)),
|
||||
font=Font1,
|
||||
fill=cfg["color_theme"]["text"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user