diff options
-rw-r--r-- | mpris-widget/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index c6b2ca6..7669b10 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -163,7 +163,7 @@ local function worker() local update_graphic = function(widget, stdout, _, _, _) -- mpdstatus, artist, current_song = stdout:match("(%w+)%;+(.-)%;(.*)") local words = {} - for w in stdout:gmatch("([^;]*)") do table.insert(words, w) end + for w in stdout:gmatch("([^;]*);") do table.insert(words, w) end mpdstatus = words[1] artist = words[2] |