From 2b860fc41144a6c5c648b9d27898d85e990fb8be Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Tue, 29 Nov 2016 03:44:31 +0100 Subject: [PATCH] cli: remove deprecated vlc.sd.is_loaded() call when listing SDs --- share/lua/intf/cli.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index 90f23af6c1..d848d32b20 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -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