X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=share%2Flua%2Fhttp%2Frequests%2Fstatus.xml;h=6581c80cdf6797341bb4a9549dfb3254786dfbeb;hb=5d1ad8bc46fb54274d481c17b365b7c0442febca;hp=123861fea7b406e14f82c5b115d4eec3d81d4cd3;hpb=599fbde71fba4397aa62fe81f957ee641654997c;p=vlc diff --git a/share/lua/http/requests/status.xml b/share/lua/http/requests/status.xml index 123861fea7..6581c80cdf 100644 --- a/share/lua/http/requests/status.xml +++ b/share/lua/http/requests/status.xml @@ -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