From c46a3cefa8182972931fa5bd486b26eae99fe7cd Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Tue, 7 Jan 2025 21:49:57 -0800 Subject: [PATCH] Use "Unknown Artist" when tag is missing This fixes the case where you switch from a file with an artist to one with no artist, which would show the old artist. The album field is already hidden, title shows the filename if missing, and the track info screen is fully reset, so this covers everything currently present. --- lua/playing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/playing.lua b/lua/playing.lua index a5503c6a..4a337c4a 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -290,7 +290,7 @@ return screen:new { else album:add_flag(lvgl.FLAG.HIDDEN) end - artist:set { text = track.artist } + artist:set { text = track.artist or "Unknown Artist" } end), queue.position:bind(function(pos) if not pos then return end