]> git.sesse.net Git - vlc/blob - share/http/requests/playlist.xml
Provide more item meta data to HTTP RPN.
[vlc] / share / http / requests / playlist.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2 <vlc id="if" param1="0"/>
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  playlist.xml: VLC media player web interface
5 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6 <  Copyright (C) 2005-2006 the VideoLAN team
7 <  $Id$
8
9 <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
10
11 <  This program is free software; you can redistribute it and/or modify
12 <  it under the terms of the GNU General Public License as published by
13 <  the Free Software Foundation; either version 2 of the License, or
14 <  (at your option) any later version.
15
16 <  This program is distributed in the hope that it will be useful,
17 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 <  GNU General Public License for more details.
20
21 <  You should have received a copy of the GNU General Public License
22 <  along with this program; if not, write to the Free Software
23 <  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25 <vlc id="end"/>
26
27 <vlc id="rpn" param1="first_item 0 store" />
28 <vlc id="rpn" param1="last_depth 0 store" />
29 <vlc id="foreach" param1="pl" param2="playlist" />
30   <vlc id="if" param1="pl.depth value last_depth value <" />
31     <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
32     <vlc id="foreach" param1="the_final_countdown" param2="integer" />
33       </node>
34     <vlc id="end" />
35   <vlc id="end" />
36   <vlc id="if" param1="pl.type value 'Node' strcmp" />
37     <vlc id="rpn" param1="1 +" />
38     <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 xml_encode" />" name="<vlc id="value" param1="pl.name xml_encode" />" ro="<vlc id="value" param1="pl.ro" />" duration="<vlc id="value" param1="pl.duration" />">
39                 <title><![CDATA[<vlc id="value" param1="pl.title xml_encode" />]]></title>
40                 <artist><![CDATA[<vlc id="value" param1="pl.artist" xml_encode />]]></artist>
41                 <genre><![CDATA[<vlc id="value" param1="pl.genre xml_encode" />]]></genre>
42                 <copyright><![CDATA[<vlc id="value" param1="pl.copyright xml_encode" />]]></copyright>
43                 <album><![CDATA[<vlc id="value" param1="pl.album xml_encode" />]]></album>
44                 <track><![CDATA[<vlc id="value" param1="pl.track xml_encode" />]]></track>
45                 <description><![CDATA[<vlc id="value" param1="pl.description xml_encode" />]]></description>
46                 <rating><![CDATA[<vlc id="value" param1="pl.rating xml_encode" />]]></rating>
47                 <date><![CDATA[<vlc id="value" param1="pl.date xml_encode" />]]></date>
48                 <url><![CDATA[<vlc id="value" param1="pl.url xml_encode" />]]></url>
49                 <language><![CDATA[<vlc id="value" param1="pl.language xml_encode" />]]></language>
50                 <now_playing><![CDATA[<vlc id="value" param1="pl.now_playing xml_encode" />]]></now_playing>
51                 <publisher><![CDATA[<vlc id="value" param1="pl.publisher xml_encode" />]]></publisher>
52                 <encoded_by><![CDATA[<vlc id="value" param1="pl.encoded_by xml_encode" />]]></encoded_by>
53                 <art_url><![CDATA[<vlc id="value" param1="pl.art_url xml_encode" />]]></art_url>
54                 <track_id><![CDATA[<vlc id="value" param1="pl.track_id xml_encode" />]]></track_id>
55         </leaf>
56   <vlc id="else" />
57     <node id="<vlc id="value" param1="pl.index" />" name="<vlc id="value" param1="pl.name xml_encode" />" ro="<vlc id="value" param1="pl.ro" />" >
58     <vlc id="if" param1="first_item value 0 ="/>
59       <vlc id="rpn" param1="first_item 1 store" />
60     <vlc id="end"/>
61     <vlc id="if" param1="pl.i_children 0 !=" />
62       
63     <vlc id="else" />
64       </node>
65     <vlc id="end" />
66   <vlc id="end" />
67   <vlc id="rpn" param1="last_depth pl.depth value store" />
68 <vlc id="end" />
69 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
70 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
71   </node>
72 <vlc id="end" />