mirror of https://github.com/lcpz/lain.git
Merge pull request #142 from xentec/mpd-nametag
Added name attribute to mpd widget
This commit is contained in:
commit
9f328a05a9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue