pyTivo
[pyTivo.git] / templates / root_container.tmpl
blob761583cdeaa0f398f6c7c35f427e488a72e04089
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <TiVoContainer>
3 <Details>
4 <Title>$hostname</Title>
5 <ContentType>x-container/tivo-server</ContentType>
6 <SourceFormat>x-container/folder</SourceFormat>
7 <TotalItems>1</TotalItems>
8 </Details>
10 #for $name, $details in $containers.items()
11 <Item>
12 <Details>
13 <Title>$name</Title>
14 <ContentType>$GetPlugin($details.type).content_type</ContentType>
15 <SourceFormat>x-container/folder</SourceFormat>
16 </Details>
17 <Links>
18 <Content>
19 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$name</Url>
20 <ContentType>$details.type</ContentType>
21 </Content>
22 </Links>
23 </Item>
24 #end for
26 <ItemStart>0</ItemStart>
27 <ItemCount>#echo len($containers) #</ItemCount>
28 </TiVoContainer>