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

add playlist.json as an additional view of playlist data

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 7ff6d243
......@@ -323,6 +323,7 @@ DIST_http_lua = \
lua/http/mobile_view.html \
lua/http/.hosts \
lua/http/requests/playlist.xml \
lua/http/requests/playlist.json \
lua/http/requests/README.txt \
lua/http/requests/playlist_jstree.xml \
lua/http/requests/browse.xml \
......
......@@ -137,7 +137,7 @@ Band 0: 60 Hz, 1: 170 Hz, 2: 310 Hz, 3: 600 Hz, 4: 1 kHz,
<Display the list of presets available for the equalizer
playlist.xml:
playlist.xml or playlist.json:
=============
< get the full playlist tree
......
<?vlc --[[
vim:syntax=lua
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< playlist.json: VLC media player web interface
< this should mirror the content of playlist.xml
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
< Copyright (C) 2005-2006 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()
print('{')
httprequests.printTableAsJson(httprequests.playlisttable(),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