From 0ca7328d0abd108e0fa28c4784c0d8e7aad7c033 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 2 Jan 2025 14:15:48 +1100 Subject: [PATCH] Hide the album line if the current track has no album --- lua/playing.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/playing.lua b/lua/playing.lua index 6ed18844..86ecf20c 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -271,7 +271,12 @@ return screen:new { end_time:set { text = format_time(playback.position:get()) } end title:set { text = track.title } - album:set { text = string.sub(track.album, 1, 58) } + if track.album then + album:set { text = string.sub(track.album, 1, 58) } + album:clear_flag(lvgl.FLAG.HIDDEN) + else + album:add_flag(lvgl.FLAG.HIDDEN) + end artist:set { text = track.artist } end), queue.position:bind(function(pos)