issue #9 semi-fix

This commit is contained in:
luke bonham 2013-11-01 19:27:49 +01:00
parent 3c56cf123a
commit 96085317a2
1 changed files with 9 additions and 9 deletions

View File

@ -42,6 +42,15 @@ local function worker(args)
mpd.widget = wibox.widget.textbox('') 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 = { mpd_notification_preset = {
title = "Now playing", title = "Now playing",
timeout = 6 timeout = 6
@ -50,15 +59,6 @@ local function worker(args)
helpers.set_map("current mpd track", nil) helpers.set_map("current mpd track", nil)
function mpd.update() 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) local f = io.popen(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh)
for line in f:lines() do for line in f:lines() do