Can have even more metadata
[pyTivo/krkeegan.git] / plugins / video / templates / container.tmpl
blob2dcfb2643abea0b4e17f6b453181bab00d12090a
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <TiVoContainer>
3 <ItemStart>$start</ItemStart>
4 <ItemCount>#echo len($videos) #</ItemCount>
5 <Details>
6 <Title>$escape($name)</Title>
7 <ContentType>x-container/tivo-videos</ContentType>
8 <SourceFormat>x-container/folder</SourceFormat>
9 <TotalItems>$total</TotalItems>
10 </Details>
11 #for $video in $videos
12 #if $video.is_dir
13 <Item>
14 <Details>
15 <Title>$escape($video.name)</Title>
16 <ContentType>x-container/folder</ContentType>
17 <SourceFormat>x-tivo-container/tivo-dvr</SourceFormat>
18 </Details>
19 <Links>
20 <Content>
21 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$quote($name)/$quote($video.name)</Url>
22 <ContentType>x-tivo-container/folder</ContentType>
23 </Content>
24 </Links>
25 </Item>
26 #else
27 <Item>
28 <Details>
29 <Title>#echo $escape('.'.join(video['name'].split('.')[:-1])) #</Title>
30 <ContentType>video/x-tivo-mpeg</ContentType>
31 <SourceFormat>video/x-ms-wmv</SourceFormat>
32 <SourceSize>$video.size</SourceSize>
33 <Duration>$video.duration</Duration>
34 <Description>$escape($video.description)</Description>
35 <EpisodeTitle>$escape($video.episode_title)</EpisodeTitle>
36 <SourceChannel>$escape($video.source_channel)</SourceChannel>
37 <SourceStation>$escape($video.source_station)</SourceStation>
38 <SeriesId>$video.series_id</SeriesId>
39 </Details>
40 <Links>
41 <Content>
42 <ContentType>video/x-tivo-mpeg</ContentType>
43 <AcceptsParams>No</AcceptsParams>
44 <Url>/$quote($name)/$quote($video.name)</Url>
45 </Content>
46 <CustomIcon>
47 <ContentType>video/*</ContentType>
48 <AcceptsParams>No</AcceptsParams>
49 <Url>urn:tivo:image:save-until-i-delete-recording</Url>
50 </CustomIcon>
51 </Links>
52 </Item>
53 #end if
54 #end for
55 </TiVoContainer>