From 0eb2084a3ac0e352d2a401869b4f8a73229af0ba Mon Sep 17 00:00:00 2001 From: luke bonham Date: Fri, 1 Nov 2013 19:27:49 +0100 Subject: [PATCH 1/1] issue #9 semi-fix --- widgets/mpd.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 -- 2.39.5