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/folder
</ContentType>
8 <SourceFormat>x-container/folder
</SourceFormat>
9 <TotalItems>$total
</TotalItems>
15 <Title>$escape($file.name)
</Title>
16 <ContentType>x-container/folder
</ContentType>
20 <ContentType>x-tivo-container/folder
</ContentType>
21 <Url>/TiVoConnect?Command=QueryContainer
&Container=$quote($name)/$quote($file.name)
</Url>
25 #elif $file['is_playlist']
28 <Title>#echo '.'.join(file['name'].split('.')[:-
1]) #
</Title>
29 <ContentType>x-tivo-container/playlist
</ContentType>
33 <ContentType>x-tivo-container/playlist
</ContentType>
34 <Url>/TiVoConnect?Command=QueryContainer
&Container=$quote($name)/$quote($file.name)
</Url>
41 #if not 'Title' in $file
42 <Title>#echo '.'.join(file['name'].split('.')[:-
1]) #
</Title>
44 <ContentType>audio/mpeg
</ContentType>
45 #for $key in ('Title', 'Duration', 'ArtistName', 'SongTitle', 'AlbumTitle', 'AlbumYear', 'MusicGenre')
46 #if $key in $file and $file[$key]
47 <$key
>$file[$key]</$key
>
53 <ContentType>audio/mpeg
</ContentType>
54 <AcceptsParams>$file.params
</AcceptsParams>
55 <Url>/$quote($container)$quote($file.part_path)
</Url>