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