summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpris-widget/init.lua2
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]