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
56 <tr><td colspan=5><a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">Back to Now Playing List</a></td></tr>
\r
59 ## i variable is used to alternate colors of row
\r
60 ## loop through passed data printing row for each show or folder
\r
64 <tr class="row$(j)">
\r
65 #if $row['ContentType'] == 'x-tivo-container/folder'
\r
68 <td><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
69 <td class="unbreak">$(row["TotalItems"]) Items</td>
\r
70 <td class="unbreak">$row["LastChangeDate"]</td>
\r
75 <!-- Display small table with color similar to TiVo colored circles -->
\r
76 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
77 <td><table><tr><td height="18" width="8" bgcolor="yellow"> </td></tr></table></td>
\r
78 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
79 <td><table><tr><td height="18" width="8" bgcolor="yellow"><b> ! </b></td></tr></table></td>
\r
80 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
81 <td><table><tr><td height="18" width="8" bgcolor="green"></td></tr></table></td>
\r
86 ## No Icon listed in XML sheet
\r
90 #if 'episodeTitle' in $row
\r
91 <b>$row['title']: $row['episodeTitle']</b><br>
\r
93 <b>$row['title']</b><br>
\r
95 <small>#if 'description' in $row
\r
98 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
99 $row['displayMajorNumber'] $row['callsign']
\r
103 <td class="unbreak">$row['SourceSize'] <br>
\r
106 <td class="unbreak">$row['CaptureDate']</td>
\r
107 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
108 <td>CopyProtected</td>
\r
109 #else if 'Url' in $row
\r
110 <td class="unbreak">
\r
111 #if $row['Url'] in $status
\r
112 #set $this_status = $status[$row['Url']]
\r
113 #if $this_status['running'] and $this_status['rate'] != ""
\r
114 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
115 Transfering - $this_status['rate'] KB/s<br>$gb
\r
116 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Stop Transfer</a>
\r
117 #elif $this_status['running'] and $this_status['rate'] == ""
\r
118 Initiating Transfer.<br>
\r
120 #elif $this_status['error']
\r
121 Error - $this_status['error']<br>
\r
122 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Try Transfer Again.</a>
\r
123 #elif $this_status['finished']
\r
126 Transfer Stopped<br>
\r
127 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Try Transfer Again.</a>
\r
130 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Transfer This.</a>
\r
134 ## No URL was in links url in XML
\r
141 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
\r
142 #set $Offset = $shows_per_page - 1
\r
143 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Next Page</a>
\r