]> git.sesse.net Git - vlc/blobdiff - share/lua/http/requests/status.xml
Revert "luahttp: fix service discovery loading."
[vlc] / share / lua / http / requests / status.xml
index 17c76df1d281483208d60300cc300ec19ba116da..f4fc486bd6b1ba2743957ff86c7a39da952f0429 100644 (file)
@@ -79,15 +79,10 @@ elseif command == "pl_loop" then
 elseif command == "pl_repeat" then
   vlc.playlist.repeat_()
 elseif command == "pl_sd" then
-  if(_GET['islua'] == "1") then
-    sdname = "lua{sd='" .. val .. "'}"
+  if vlc.sd.is_loaded(val) then
+    vlc.sd.remove(val)
   else
-    sdname = val
-  end
-  if vlc.sd.is_loaded(sdname) then
-    vlc.sd.remove(sdname)
-  else
-    vlc.sd.add(sdname)
+    vlc.sd.add(val)
   end
 elseif command == "fullscreen" then
   vlc.fullscreen()