pyTivo
[pyTivo/krkeegan.git] / templates / container.tmpl
blob4f9c4d2c31367b49a905c09554b8605f223d666f
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <TiVoContainer>
3 <ItemStart>$start</ItemStart>
4 <ItemCount>#echo len($files) #</ItemCount>
5 <Details>
6 <Title>$name</Title>
7 <ContentType>x-container/tivo-videos</ContentType>
8 <SourceFormat>x-container/folder</SourceFormat>
9 <TotalItems>$total</TotalItems>
10 </Details>
11 #for $file in $files
12 #if $isdir($file)
13 <Item>
14 <Details>
15 <Title>$file</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=$name/$file</Url>
22 <ContentType>x-tivo-container/folder</ContentType>
23 </Content>
24 </Links>
25 </Item>
26 #else
27 <Item>
28 <Details>
29 <Title>#echo '.'.join(file.split('.')[:-1]) #</Title>
30 <ContentType>video/x-tivo-mpeg</ContentType>
31 <SourceFormat>video/x-tivo-mpeg</SourceFormat>
32 <SourceSize>6000000536</SourceSize>
33 </Details>
34 <Links>
35 <Content>
36 <ContentType>video/x-tivo-mpeg</ContentType>
37 <AcceptsParams>No</AcceptsParams>
38 <Url>/$name/$file</Url>
39 </Content>
40 <CustomIcon>
41 <ContentType>video/*</ContentType>
42 <AcceptsParams>No</AcceptsParams>
43 <Url>urn:tivo:image:save-until-i-delete-recording</Url>
44 </CustomIcon>
45 </Links>
46 </Item>
47 #end if
48 #end for
49 </TiVoContainer>