Initial Commit
[Projects.git] / pytivo-youtube / source / plugins / youtube / templates / .svn / text-base / container.tmpl.svn-base
blob05371d22cf12bccfa9644f12e6da130269c0228f
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 $tivo_names
6 #if $tivo
7 <Tivo>$tivo_names[$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.isdir
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.title)</UniqueId>
28 <TotalItems>$video.total_items</TotalItems>
29 </Details>
30 <Links>
31 <Content>
32 <Url>/TiVoConnect?Command=QueryContainer&amp;Container=$quote($container)/$quote($video.id)</Url>
33 <ContentType>x-tivo-container/folder</ContentType>
34 </Content>
35 </Links>
36 </Item>
37 #else
38 <Item>
39 <Details>
40 <Title>$escape($video.title)</Title>
41 <ContentType>video/x-tivo-mpeg</ContentType>
42 <SourceFormat>video/x-ms-wmv</SourceFormat>
43 <SourceSize>$video.size</SourceSize>
44 <Duration>$video.milliseconds</Duration>
45 <Description>$escape($video.description)</Description>
46 <SourceChannel>$escape($video.channelnumber)</SourceChannel>
47 <SourceStation>$escape($video.channelname)</SourceStation>
48 <SeriesId>$video.seriesId</SeriesId>
49 #if $video.isEpisode != 'false' and ($video.episodeTitle or $video.seriesTitle)
50 #if $video.episodeTitle
51 <EpisodeTitle>$escape($video.episodeTitle)</EpisodeTitle>
52 #else
53 <EpisodeTitle>$escape($video.title)</EpisodeTitle>
54 #end if
55 #end if
56 #if not $video.playable
57 <CopyProtected>Yes</CopyProtected>
58 #end if
59 </Details>
60 <Links>
61 <Content>
62 <ContentType>video/x-tivo-mpeg</ContentType>
63 <AcceptsParams>No</AcceptsParams>
64 <Url>/$quote($container)/$quote($video.id)</Url>
65 </Content>
66 <CustomIcon>
67 <ContentType>video/*</ContentType>
68 <AcceptsParams>No</AcceptsParams>
69 <Url>urn:tivo:image:save-until-i-delete-recording</Url>
70 </CustomIcon>
71 <TiVoVideoDetails>
72 <ContentType>text/xml</ContentType>
73 <AcceptsParams>No</AcceptsParams>
74 <Url>/TiVoConnect?Command=TVBusQuery&amp;Container=$quote($container)&amp;id=$quote($video.id)</Url>
75 </TiVoVideoDetails>
76 <Push>
77 <Container>$escape($container)</Container>
78 <id>$escape($video.id)</id>
79 </Push>
80 <Watch>http://www.youtube.com/watch?v=$video.id</Watch>
81 </Links>
82 </Item>
83 #end if
84 #end for
85 </TiVoContainer>