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