1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta content="text/html; charset=UTF-8" http-equiv="content-type">
\r
5 <title>pyTivo - ToGo</title>
\r
7 <body style="background-color: rgb(250, 250, 250);">
\r
9 #set $tname = $tivoIP
\r
11 #if $tivoIP == $tivos[$tsn]
\r
12 #set $tname = $tivo_names[$tsn]
\r
15 <p align="center"><font size="6">pyTivo - ToGo - $tname</font></p>
\r
16 <table style="border: 1px solid rgb(220, 220, 220);background-color: rgb(255, 255, 255);text-align: left;" border="0" cellpadding="0" cellspacing="4">
\r
22 #set $Offset = -($ItemStart + 1)
\r
23 #if $Offset < -($shows_per_page+1)
\r
24 #set $Offset = -($shows_per_page+1)
\r
26 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Previous Page</a>
\r
30 <!-- We are in a subfolder, offer the option to return to NPL -->
\r
31 <tr><td colspan=5><a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">Back to Now Playing List</a></td></tr>
\r
34 <!-- i variable is used to alternate colors of row -->
\r
35 <!-- loop through passed data printing row for each show or folder -->
\r
39 <tr style="background-color: rgb(240, 240, 240);">
\r
43 #if $row['ContentType'] == 'x-tivo-container/folder'
\r
44 <!-- This is a folder -->
\r
46 <td><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
47 <td NOWRAP align="center">$(row["TotalItems"]) Items</td>
\r
48 <td NOWRAP align="center">$row["LastChangeDate"]</td>
\r
51 <!-- This is a show -->
\r
53 <!-- Display small table with color similar to TiVo colored circles -->
\r
54 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
55 <td><table><tr><td height=18 width=8 bgcolor='yellow'> </td></tr></table></td>
\r
56 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
57 <td><table><tr><td height=18 width=8 bgcolor='yellow'><b> ! </b></td></tr></table></td>
\r
58 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
59 <td><table><tr><td height=18 width=8 bgcolor='green'></td></tr></table></td>
\r
64 <!-- No Icon listed in XML sheet -->
\r
68 #if 'episodeTitle' in $row
\r
69 <b>$row['title']: $row['episodeTitle']</b><br>
\r
71 <b>$row['title']</b><br>
\r
73 <small>#if 'description' in $row
\r
76 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
77 $row['displayMajorNumber'] $row['callsign']</small>
\r
80 <td NOWRAP align="center">$row['SourceSize'] <br>
\r
83 <td NOWRAP align="center">$row['CaptureDate']</td>
\r
84 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
85 <td>CopyProtected</td>
\r
86 #else if 'Url' in $row
\r
88 #if $row['Url'] in $status
\r
89 #set $this_status = $status[$row['Url']]
\r
90 #if $this_status['running'] and $this_status['rate'] != ""
\r
91 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
92 Transfering - $this_status['rate'] KB/s<br>$gb
\r
93 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Stop Transfer</a>
\r
94 #elif $this_status['running'] and $this_status['rate'] == ""
\r
95 Initiating Transfer.<br>
\r
97 #elif $this_status['error']
\r
98 Error - $this_status['error']<br>
\r
99 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Try Transfer Again.</a>
\r
100 #elif $this_status['finished']
\r
103 Transfer Stopped<br>
\r
104 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Try Transfer Again.</a>
\r
107 <a href="/TiVoConnect?Command=ToGo&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP&Redirect=NPL">Transfer This.</a>
\r
111 <!-- No URL was in links url in XML -->
\r
118 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
\r
119 #set $Offset = $shows_per_page - 1
\r
120 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Next Page</a>
\r