couple more vInfo corrections
[pyTivo/krkeegan.git] / plugins / video / templates / container.tmpl
blob979944fc97e1a94afb52499c21468274138a0557
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <?xml-stylesheet type="text/xsl" href="/TiVoConnect?Command=XSL&amp;Container=$quote($name)"?>
3 <TiVoContainer>
4 <Tivos>
5 #for $tivo in $tivos
6 #if $tivo
7 <Tivo>$tivo</Tivo>
8 #end if
9 #end for
10 </Tivos>
11 <ItemStart>$start</ItemStart>
12 <ItemCount>#echo len($videos) #</ItemCount>
13 <Details>
14 <Title>$escape($name)</Title>
15 <ContentType>x-container/tivo-videos</ContentType>
16 <SourceFormat>x-container/folder</SourceFormat>
17 <TotalItems>$total</TotalItems>
18 <UniqueId>$crc($guid + $name)</UniqueId>
19 </Details>
20 #for $video in $videos
21 #if $video.is_dir
22 <Item>
23 <Details>
24 <Title>$escape($video.title)</Title>
25 <ContentType>x-container/folder</ContentType>
26 <SourceFormat>x-tivo-container/tivo-dvr</SourceFormat>
27 <UniqueId>$crc($guid + $video.small_path)</UniqueId>
28 <TotalItems>$video.total_items</TotalItems>
29 <LastCaptureDate>$video.captureDate</LastCaptureDate>
30 </Details>
31 <Links>
32 <Content>
33 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$quote($name)/$quote($video.name)</Url>
34 <ContentType>x-tivo-container/folder</ContentType>
35 </Content>
36 </Links>
37 </Item>
38 #else
39 <Item>
40 <Details>
41 <Title>$escape($video.title)</Title>
42 <ContentType>video/x-tivo-mpeg</ContentType>
43 #if not $video.valid
44 <CopyProtected>Yes</CopyProtected>
45 #end if
46 <SourceFormat>video/x-ms-wmv</SourceFormat>
47 <SourceSize>$video.size</SourceSize>
48 <Duration>$video.duration</Duration>
49 #if $video.episodeTitle
50 <EpisodeTitle>$escape($video.episodeTitle)</EpisodeTitle>
51 #end if
52 <Description>$escape($video.description)</Description>
53 <SourceChannel>$escape($video.displayMajorNumber)</SourceChannel>
54 <SourceStation>$escape($video.callsign)</SourceStation>
55 <SeriesId>$video.seriesId</SeriesId>
56 <CaptureDate>$video.captureDate</CaptureDate>
57 </Details>
58 <Links>
59 <Content>
60 <ContentType>video/x-tivo-mpeg</ContentType>
61 <AcceptsParams>No</AcceptsParams>
62 <Url>/$quote($container)$quote($video.part_path)</Url>
63 </Content>
64 <CustomIcon>
65 <ContentType>video/*</ContentType>
66 <AcceptsParams>No</AcceptsParams>
67 <Url>urn:tivo:image:save-until-i-delete-recording</Url>
68 </CustomIcon>
69 <TiVoVideoDetails>
70 <ContentType>text/xml</ContentType>
71 <AcceptsParams>No</AcceptsParams>
72 <Url>/TiVoConnect?Command=TVBusQuery&amp;Container=$quote($container)&amp;File=$quote($video.part_path)</Url>
73 </TiVoVideoDetails>
74 <Push>
75 <Container>$escape($container)</Container>
76 <File>$escape($video.part_path)</File>
77 </Push>
78 </Links>
79 </Item>
80 #end if
81 #end for
82 </TiVoContainer>