From: luke bonham Date: Fri, 1 Nov 2013 18:27:49 +0000 (+0100) Subject: issue #9 semi-fix X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/96085317a2e39e7b3594c2df4fe9062a210a6e9b?ds=sidebyside;hp=--cc issue #9 semi-fix --- 96085317a2e39e7b3594c2df4fe9062a210a6e9b diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 58d9430..4ee922f 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -42,6 +42,15 @@ local function worker(args) mpd.widget = wibox.widget.textbox('') + mpd_now = { + state = "N/A", + file = "N/A", + artist = "N/A", + title = "N/A", + album = "N/A", + date = "N/A" + } + mpd_notification_preset = { title = "Now playing", timeout = 6 @@ -50,15 +59,6 @@ local function worker(args) helpers.set_map("current mpd track", nil) function mpd.update() - mpd_now = { - state = "N/A", - file = "N/A", - artist = "N/A", - title = "N/A", - album = "N/A", - date = "N/A" - } - local f = io.popen(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh) for line in f:lines() do