From: Luke Bonham Date: Tue, 22 Sep 2015 11:02:04 +0000 (+0200) Subject: Merge pull request #142 from xentec/mpd-nametag X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/9f328a05a915ec059bf2245d7d1fcd7ba537959a?hp=29983d95b27b2b455903d90f72a68035b7563ffd Merge pull request #142 from xentec/mpd-nametag Added name attribute to mpd widget --- diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 5af898b..c437347 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -71,6 +71,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)