From fe32af5f4343a117d6ac3553095a9c3aefb98587 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Mon, 16 Sep 2013 13:49:14 +0200 Subject: [PATCH] little fix --- widgets/mpd.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5