if config[k] then
if type(env[k]) == type(config[k]) then
env[k] = config[k]
- vlc.msg.dbg("set environement variable `"..k.."' to "..tonumber(env[k]))
+ vlc.msg.dbg("set environement variable `"..k.."' to "..tostring(env[k]))
else
vlc.msg.err("environement variable `"..k.."' should be of type "..type(env[k])..". config value will be discarded.")
end
end
function add(name,client,arg)
+ -- TODO: par single and double quotes properly
local f
if name == "enqueue" then
f = vlc.playlist.enqueue
return function(discard,client,...) client:append(start..tostring(foo(...))..stop) end
end
-function get_time(var,client)
- return function()
+function get_time(var)
+ return function(name,client)
local input = vlc.object.input()
client:append(math.floor(vlc.var.get( input, var )))
end