diff options
| author | Tom Kirchner <git@halffull.org> | 2025-01-07 21:49:57 -0800 |
|---|---|---|
| committer | Tom Kirchner <git@halffull.org> | 2025-01-07 21:49:57 -0800 |
| commit | c46a3cefa8182972931fa5bd486b26eae99fe7cd (patch) | |
| tree | 338e60e082a7a9315e4a6603c70c1f891a063099 /lua | |
| parent | 829d033a448107f1bc610cf735ce9f7222de564b (diff) | |
| download | tangara-fw-c46a3cefa8182972931fa5bd486b26eae99fe7cd.tar.gz | |
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.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/playing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
