<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<vlc id="if" param1="0"/>
<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  playlist.xml: VLC media player web interface
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  Copyright (C) 2005-2006 the VideoLAN team
<  $Id$
< 
<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
< 
<  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 id="end"/>

<vlc id="rpn" param1="first_item 0 store" />
<vlc id="rpn" param1="last_depth 0 store" />
<vlc id="foreach" param1="pl" param2="playlist" />
  <vlc id="if" param1="pl.depth value last_depth value <" />
    <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
    <vlc id="foreach" param1="the_final_countdown" param2="integer" />
      </node>
    <vlc id="end" />
  <vlc id="end" />
  <vlc id="if" param1="pl.type value 'Node' strcmp" />
    <vlc id="rpn" param1="1 +" />
    <leaf id="<vlc id="value" param1="pl.index" />" <vlc id="if" param1="pl.current" /> current="current" <vlc id="end" /> uri="<vlc id="value" param1="pl.uri value xml_encode" />" name="<vlc id="value" param1="pl.name value xml_encode" />" ro="<vlc id="value" param1="pl.ro" />" duration="<vlc id="value" param1="pl.duration" />">
		<title><![CDATA[<vlc id="value" param1="pl.title value xml_encode" />]]></title>
		<artist><![CDATA[<vlc id="value" param1="pl.artist value xml_encode" />]]></artist>
		<genre><![CDATA[<vlc id="value" param1="pl.genre value xml_encode" />]]></genre>
		<copyright><![CDATA[<vlc id="value" param1="pl.copyright value xml_encode" />]]></copyright>
		<album><![CDATA[<vlc id="value" param1="pl.album value xml_encode" />]]></album>
		<track><![CDATA[<vlc id="value" param1="pl.track value xml_encode" />]]></track>
		<description><![CDATA[<vlc id="value" param1="pl.description value xml_encode" />]]></description>
		<rating><![CDATA[<vlc id="value" param1="pl.rating value xml_encode" />]]></rating>
		<date><![CDATA[<vlc id="value" param1="pl.date value xml_encode" />]]></date>
		<url><![CDATA[<vlc id="value" param1="pl.url value xml_encode" />]]></url>
		<language><![CDATA[<vlc id="value" param1="pl.language value xml_encode" />]]></language>
		<now_playing><![CDATA[<vlc id="value" param1="pl.now_playing value xml_encode" />]]></now_playing>
		<publisher><![CDATA[<vlc id="value" param1="pl.publisher value xml_encode" />]]></publisher>
		<encoded_by><![CDATA[<vlc id="value" param1="pl.encoded_by value xml_encode" />]]></encoded_by>
		<art_url><![CDATA[<vlc id="value" param1="pl.art_url value xml_encode" />]]></art_url>
		<track_id><![CDATA[<vlc id="value" param1="pl.track_id value xml_encode" />]]></track_id>
	</leaf>
  <vlc id="else" />
    <node id="<vlc id="value" param1="pl.index" />" name="<vlc id="value" param1="pl.name value xml_encode" />" ro="<vlc id="value" param1="pl.ro" />" >
    <vlc id="if" param1="first_item value 0 ="/>
      <vlc id="rpn" param1="first_item 1 store" />
    <vlc id="end"/>
    <vlc id="if" param1="pl.i_children 0 !=" />
      
    <vlc id="else" />
      </node>
    <vlc id="end" />
  <vlc id="end" />
  <vlc id="rpn" param1="last_depth pl.depth value store" />
<vlc id="end" />
<vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
<vlc id="foreach" param1="the_final_countdown" param2="integer" />
  </node>
<vlc id="end" />
