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