]> git.sesse.net Git - vlc/blobdiff - share/lua/http/requests/status.xml
LUA HTTP Interface: If <id> is omitted at the status.xml play command, play last...
[vlc] / share / lua / http / requests / status.xml
index 123861fea7b406e14f82c5b115d4eec3d81d4cd3..6581c80cdf6797341bb4a9549dfb3254786dfbeb 100644 (file)
@@ -55,7 +55,11 @@ if command == "in_play" then
 elseif command == "in_enqueue" then
   vlc.playlist.enqueue({{path=stripslashes(input),options=options}})
 elseif command == "pl_play" then
-  vlc.playlist.goto(id)
+  if id == -1 then
+    vlc.playlist.play()
+  else
+    vlc.playlist.goto(id)
+  end
 elseif command == "pl_pause" then
   vlc.playlist.pause()
 elseif command == "pl_stop" then