Added Capture date based on file modified time
[pyTivo.git] / plugins / video / templates / container.tmpl
blob8151468cb0b50ebe8fe1eda80fb90cba452c4408
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 <UniqueId>$crc($guid + $name)</UniqueId>
11 </Details>
12 #for $video in $videos
13 #if $video.is_dir
14 <Item>
15 <Details>
16 <Title>$escape($video.title)</Title>
17 <ContentType>x-container/folder</ContentType>
18 <SourceFormat>x-tivo-container/tivo-dvr</SourceFormat>
19 <UniqueId>$crc($guid + $video.small_path)</UniqueId>
20 <TotalItems>$video.total_items</TotalItems>
21 <LastCaptureDate>$video.captureDate</LastCaptureDate>
22 </Details>
23 <Links>
24 <Content>
25 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$quote($name)/$quote($video.name)</Url>
26 <ContentType>x-tivo-container/folder</ContentType>
27 </Content>
28 </Links>
29 </Item>
30 #else
31 <Item>
32 <Details>
33 <Title>$escape($video.title)</Title>
34 <ContentType>video/x-tivo-mpeg</ContentType>
35 #if not $video.valid
36 <CopyProtected>Yes</CopyProtected>
37 #end if
38 <SourceFormat>video/x-ms-wmv</SourceFormat>
39 <SourceSize>$video.size</SourceSize>
40 <Duration>$video.duration</Duration>
41 <Description>$escape($video.description)</Description>
42 <SourceChannel>$escape($video.displayMajorNumber)</SourceChannel>
43 <SourceStation>$escape($video.callsign)</SourceStation>
44 <SeriesId>$video.seriesId</SeriesId>
45 <CaptureDate>$video.captureDate</CaptureDate>
46 </Details>
47 <Links>
48 <Content>
49 <ContentType>video/x-tivo-mpeg</ContentType>
50 <AcceptsParams>No</AcceptsParams>
51 <Url>/$quote($container)$quote($video.part_path)</Url>
52 </Content>
53 <CustomIcon>
54 <ContentType>video/*</ContentType>
55 <AcceptsParams>No</AcceptsParams>
56 <Url>urn:tivo:image:save-until-i-delete-recording</Url>
57 </CustomIcon>
58 <TiVoVideoDetails>
59 <ContentType>text/xml</ContentType>
60 <AcceptsParams>No</AcceptsParams>
61 <Url>/TiVoConnect?Command=TVBusQuery&amp;Container=$quote($container)&amp;File=$quote($video.part_path)</Url>
62 </TiVoVideoDetails>
63 </Links>
64 </Item>
65 #end if
66 #end for
67 </TiVoContainer>