Commit 9807b702 authored by Rob Jonson's avatar Rob Jonson Committed by Rémi Denis-Courmont

add browse.json as an alternative view of the browse data

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 1cbee971
...@@ -327,6 +327,7 @@ DIST_http_lua = \ ...@@ -327,6 +327,7 @@ DIST_http_lua = \
lua/http/requests/README.txt \ lua/http/requests/README.txt \
lua/http/requests/playlist_jstree.xml \ lua/http/requests/playlist_jstree.xml \
lua/http/requests/browse.xml \ lua/http/requests/browse.xml \
lua/http/requests/browse.json \
lua/http/requests/vlm_cmd.xml \ lua/http/requests/vlm_cmd.xml \
lua/http/requests/status.xml \ lua/http/requests/status.xml \
lua/http/requests/status.json \ lua/http/requests/status.json \
......
...@@ -144,7 +144,7 @@ playlist.xml or playlist.json: ...@@ -144,7 +144,7 @@ playlist.xml or playlist.json:
NB: playlist_jstree.xml is used for the internal web client. It should not be relied upon by external remotes. NB: playlist_jstree.xml is used for the internal web client. It should not be relied upon by external remotes.
It may be removed without notice. It may be removed without notice.
browse.xml: browse.xml or browse.json:
=========== ===========
< ?dir=<uri> < ?dir=<uri>
......
<?vlc --[[
vim:syntax=lua
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< status.xml: VLC media player web interface
< this should mirror the content and function of status.json
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< Copyright (C) 2005-2009 the VideoLAN team
< $Id$
<
< Authors: Rob Jonson <rob -at- hobbyistsoftware -dot- com>
<
< This program is free software; you can redistribute it and/or modify
< it under the terms of the GNU General Public License as published by
< the Free Software Foundation; either version 2 of the License, or
< (at your option) any later version.
<
< This program is distributed in the hope that it will be useful,
< but WITHOUT ANY WARRANTY; without even the implied warranty of
< MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< GNU General Public License for more details.
<
< You should have received a copy of the GNU General Public License
< along with this program; if not, write to the Free Software
< Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
]]?>
<?vlc
--package.loaded.httprequests = nil --uncomment to debug changes
require "httprequests"
httprequests.processcommands()
local browseTable=httprequests.getbrowsetable()
print('{')
httprequests.printTableAsJson(browseTable,0)
print('}')
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment