1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?<?vlc print'>'?>
4 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
5 < playlist.xml: VLC media player web interface
6 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
7 < Copyright (C) 2005-2006 the VideoLAN team
10 < Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
12 < This program is free software; you can redistribute it and/or modify
13 < it under the terms of the GNU General Public License as published by
14 < the Free Software Foundation; either version 2 of the License, or
15 < (at your option) any later version.
17 < This program is distributed in the hope that it will be useful,
18 < but WITHOUT ANY WARRANTY; without even the implied warranty of
19 < MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 < GNU General Public License for more details.
22 < You should have received a copy of the GNU General Public License
23 < along with this program; if not, write to the Free Software
24 < Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
28 <node id="0" name="Undefined" ro="ro">
30 local playlist = vlc.playlist.get()
31 for i,item in ipairs(playlist) do
32 local name, path = vlc.convert_xml_special_chars(item.name,item.path)
33 print("<leaf id='"..tostring(i).."' uri='"..path.."' name='"..name.."' ro='ro' duration='"..tostring(item.duration).."'/>")
39 <node id="9" name="Nevermind" ro="rw">
40 <leaf id="10" current="current" uri="file:///mnt/stuff/media/Nirvana/Nevermind/01 - Smells Like Teen Spirit.mp3" name="Smells Like Teen Spirit" ro="rw" duration="-1"/>