1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
\r
2 "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <meta content="text/html; charset=UTF-8" http-equiv="content-type">
\r
6 <title>pyTivo - ToGo</title>
\r
7 <style type="text/css">
\r
10 background-color: rgb(250, 250, 250)
\r
14 background-color: rgb(240, 240, 240)
\r
22 border: 1px solid rgb(220, 220, 220);
\r
23 background-color: rgb(255, 255, 255)
\r
27 white-space: nowrap;
\r
35 #set $tname = $tivoIP
\r
37 #if $tivoIP == $tivos[$tsn]
\r
38 #set $tname = $tivo_names[$tsn]
\r
41 <p style="text-align: center"><span id="title">pyTivo - ToGo - $tname</span></p>
\r
42 <table id="main" border="0" cellpadding="0" cellspacing="4">
\r
47 #set $Offset = -($ItemStart + 1)
\r
48 #if $Offset < -($shows_per_page+1)
\r
49 #set $Offset = -($shows_per_page+1)
\r
51 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Previous Page</a>
\r
55 ## We are in a subfolder, offer the option to return to NPL
\r
57 <td><img src="/plugin/togo/content/Back.png"></td>
\r
58 <td colspan=4><a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">Back to Now Playing List</a></td>
\r
62 ## i variable is used to alternate colors of row
\r
63 ## loop through passed data printing row for each show or folder
\r
67 <tr class="row$(j)">
\r
68 #if $row['ContentType'] == 'x-tivo-container/folder'
\r
70 <td><image src="/plugin/togo/content/Folder.png" border=0></td>
\r
71 <td><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
72 <td class="unbreak">$(row["TotalItems"]) Items</td>
\r
73 <td class="unbreak">$row["LastChangeDate"]</td>
\r
78 <!-- Display icons similar to TiVo colored circles -->
\r
79 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
80 <td><image src="/plugin/togo/content/Y.png" border=0></td>
\r
81 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
82 <td><image src="/plugin/togo/content/YE.png" border=0></td>
\r
83 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
84 <td><image src="/plugin/togo/content/G.png" border=0></td>
\r
85 #else if $row['Icon'] == 'urn:tivo:image:in-progress-recording'
\r
86 <td><image src="/plugin/togo/content/R.png" border=0></td>
\r
91 ## No Icon listed in XML sheet
\r
95 #if 'episodeTitle' in $row
\r
96 <b>$row['title']: $row['episodeTitle']</b><br>
\r
98 <b>$row['title']</b><br>
\r
100 <small>#if 'description' in $row
\r
101 $row['description']
\r
103 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
104 $row['displayMajorNumber'] $row['callsign']
\r
108 <td class="unbreak">$row['SourceSize'] <br>
\r
111 <td class="unbreak">$row['CaptureDate']</td>
\r
112 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
113 <td class="unbreak">Copy Protected</td>
\r
114 #else if 'Url' in $row
\r
115 <td class="unbreak">
\r
116 #if $row['Url'] in $status
\r
117 #set $this_status = $status[$row['Url']]
\r
118 #if $this_status['running'] and $this_status['rate'] != ""
\r
119 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
120 Transfering - $this_status['rate'] KB/s<br>$gb
\r
121 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=$quote($my_url)">Stop Transfer</a>
\r
122 #elif $this_status['running'] and $this_status['rate'] == ""
\r
123 Initiating Transfer<br>
\r
125 #elif $this_status['error']
\r
126 Error - $this_status['error']<br>
\r
127 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=$quote($my_url)">Try Transfer Again</a>
\r
128 #elif $this_status['finished']
\r
131 Transfer Stopped<br>
\r
132 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=$quote($my_url)">Try Transfer Again</a>
\r
135 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=$quote($my_url)">Transfer This</a>
\r
139 ## No URL was in links url in XML
\r
146 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
\r
147 #set $Offset = $shows_per_page - 1
\r
148 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Next Page</a>
\r