Commit 2b860fc4 authored by Pierre Ynard's avatar Pierre Ynard

cli: remove deprecated vlc.sd.is_loaded() call when listing SDs

parent 9555aa09
......@@ -290,15 +290,10 @@ function services_discovery(name,client,arg)
local sd = vlc.sd.get_services_names()
client:append("+----[ Services discovery ]")
for n,ln in pairs(sd) do
local status
if vlc.sd.is_loaded(n) then
status = "enabled"
else
status = "disabled"
end
client:append("| "..n..": " .. ln .. " (" .. status .. ")")
client:append("| "..n..": " .. ln)
end
client:append("+----[ End of services discovery ]")
client:append("Enabled services discovery sources appear in the playlist.")
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment