From: copycat-killer Date: Thu, 12 Nov 2015 10:51:53 +0000 (+0100) Subject: (re)merged #142 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/11e448e5e2260fbbcb63f1303bbc00d0d8ddcbbd?ds=sidebyside;hp=--cc (re)merged #142 --- 11e448e5e2260fbbcb63f1303bbc00d0d8ddcbbd diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 5af898b..1972050 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -59,6 +59,7 @@ local function worker(args) mpd_now = { state = "N/A", file = "N/A", + name = "N/A", artist = "N/A", title = "N/A", album = "N/A", @@ -71,6 +72,7 @@ local function worker(args) for k, v in string.gmatch(line, "([%w]+):[%s](.*)$") do if k == "state" then mpd_now.state = v elseif k == "file" then mpd_now.file = v + elseif k == "Name" then mpd_now.name = escape_f(v) elseif k == "Artist" then mpd_now.artist = escape_f(v) elseif k == "Title" then mpd_now.title = escape_f(v) elseif k == "Album" then mpd_now.album = escape_f(v)