X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a8eb652fd64299d64c9e831544263eabac0476ab..c2d27aec72f3db1a795b9fce4828049cbf91dacd:/widgets/mpd.lua?ds=sidebyside diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 82db92c..3ebc761 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -9,7 +9,7 @@ local helpers = require("lain.helpers") -local util = require("awful.util") +local escape_f = require("awful.util").escape local naughty = require("naughty") local wibox = require("wibox") @@ -64,10 +64,10 @@ 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 == "Artist" then mpd_now.artist = util.escape(v) - elseif k == "Title" then mpd_now.title = util.escape(v) - elseif k == "Album" then mpd_now.album = util.escape(v) - elseif k == "Date" then mpd_now.date = util.escape(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) + elseif k == "Date" then mpd_now.date = escape_f(v) end end end