Initial Commit
[Projects.git] / pkgbuilds / pytivo / pkg / usr / share / pyTivo / plugins / photo / templates / container.tmpl
blobdd064aa7b9d1e63e42e95e47959287a2ced80977
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <TiVoContainer>
3 <ItemStart>$start</ItemStart>
4 <ItemCount>#echo len($files) #</ItemCount>
5 <Details>
6 <Title>$escape($name)</Title>
7 <ContentType>x-container/folder</ContentType>
8 <SourceFormat>x-container/folder</SourceFormat>
9 <TotalItems>$total</TotalItems>
10 </Details>
11 #for $file in $files
12 #if $file['is_dir']
13 <Item>
14 <Details>
15 <Title>$escape($file.name)</Title>
16 <ContentType>x-container/folder</ContentType>
17 <SourceFormat>x-container/folder</SourceFormat>
18 </Details>
19 <Links>
20 <Content>
21 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$quote($name)/$quote($file.name)</Url>
22 <ContentType>x-container/folder</ContentType>
23 </Content>
24 </Links>
25 </Item>
26 #else
27 <Item>
28 <Details>
29 <Title>#echo '.'.join(file['name'].split('.')[:-1]) #</Title>
30 <ContentType>image/jpeg</ContentType>
31 #if 'odate' in $file
32 <CaptureDate>$file['odate']</CaptureDate>
33 #end if
34 <CreationDate>$file['cdate']</CreationDate>
35 <LastChangeDate>$file['mdate']</LastChangeDate>
36 </Details>
37 <Links>
38 <Content>
39 <ContentType>image/jpeg</ContentType>
40 <AcceptsParams>Yes</AcceptsParams>
41 <Url>/$quote($container)$quote($file.part_path)</Url>
42 </Content>
43 </Links>
44 </Item>
45 #end if
46 #end for
47 </TiVoContainer>