1 <?xml version=
"1.0" encoding=
"UTF-8" ?>
3 <ItemStart>$start
</ItemStart>
4 <ItemCount>#echo len($files) #
</ItemCount>
6 <Title>$escape($name)
</Title>
7 <ContentType>x-container/playlist
</ContentType>
8 <SourceFormat>x-container/playlist
</SourceFormat>
9 <TotalItems>$total
</TotalItems>
12 #if '://' in $file['path']
15 #if not 'Title' in $file
16 <Title>#echo $file['path'].strip() #
</Title>
18 #if $file['is_playlist']
19 <ContentType>x-tivo-container/playlist
</ContentType>
21 <ContentType>audio/mpeg
</ContentType>
23 #for $key in ('Title', 'Duration')
24 #if $key in $file and $file[$key]
25 <$key
>$file[$key]</$key
>
31 #if $file['is_playlist']
32 <ContentType>x-tivo-container/playlist
</ContentType>
33 <Url>/TiVoConnect?Command=QueryContainer
&Container=$quote($container)/$quote($file['path'].strip())
</Url>
35 <ContentType>audio/mpeg
</ContentType>
36 <AcceptsParams>No
</AcceptsParams>
37 <Url>$file['path'].strip()
</Url>
42 #elif $file['is_playlist']
45 <Title>#echo '.'.join(file['name'].split('.')[:-
1]) #
</Title>
46 <ContentType>x-tivo-container/playlist
</ContentType>
50 <ContentType>x-tivo-container/playlist
</ContentType>
51 <Url>/TiVoConnect?Command=QueryContainer
&Container=$quote($container)$quote($file.part_path)
</Url>
58 #if not 'Title' in $file
59 <Title>#echo '.'.join(file['name'].split('.')[:-
1]) #
</Title>
61 <ContentType>audio/mpeg
</ContentType>
62 #for $key in ('Title', 'Duration', 'ArtistName', 'SongTitle', 'AlbumTitle', 'AlbumYear', 'MusicGenre')
63 #if $key in $file and $file[$key]
64 <$key
>$file[$key]</$key
>
70 <ContentType>audio/mpeg
</ContentType>
71 <AcceptsParams>$file.params
</AcceptsParams>
72 <Url>/$quote($container)$quote($file.part_path)
</Url>