diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index b8a0b7aea1725bd6f4789d7e4eff2d213573d52d..c2259a297ebd913c0a28f54d721570a21d22a266 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -658,8 +658,13 @@ function call_vlm_command(cmd,client,arg) cmd = cmd.." "..arg end local message, vlc_err = vlm:execute_command( cmd ) + -- the VLM doesn't let us know if the command exists, + -- so we need this ugly hack + if vlc_err ~= 0 and message.value == "Unknown VLM command" then + return vlc_err + end vlm_message_to_string( client, message ) - return vlc_err + return 0 end function call_libvlc_command(cmd,client,arg)