1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
\r
2 "http://www.w3.org/TR/html4/strict.dtd">
\r
5 <title>pyTivo - ToGo - $escape($tname)</title>
\r
6 <link rel="stylesheet" type="text/css" href="/main.css">
\r
9 <form action="/TiVoConnect" method="POST">
\r
10 <p id="titlep"><span id="title">pyTivo - ToGo - $escape($tname)</span></p>
\r
11 <p><a href="/">Home</a></p>
\r
12 <script language="JavaScript">
\r
14 function toggle(source) {
\r
15 var checkboxes = document.getElementsByName('Url');
\r
16 for (var i = 0; i < checkboxes.length; i++) {
\r
17 if (typeof(checkboxes[i].checked) != "undefined") {
\r
18 checkboxes[i].checked = source.checked;
\r
24 <table id="main" border="0" cellpadding="0" cellspacing="4">
\r
26 <tr><td colspan="5">
\r
27 #set $Offset = -($ItemStart + 1)
\r
28 #if $Offset < -($shows_per_page+1)
\r
29 #set $Offset = -($shows_per_page+1)
\r
31 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Previous Page</a>
\r
35 ## We are in a subfolder, offer the option to return to NPL
\r
37 <td><img src="/back.png" alt=""></td>
\r
38 <td colspan=4><a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">Back to Now Playing List</a></td>
\r
43 <td><input type="checkbox" name="selectAll" onClick="toggle(this)" Title="Select All" /></td>
\r
47 <td>Capture Date</td>
\r
50 ## i variable is used to alternate colors of row
\r
51 ## loop through passed data printing row for each show or folder
\r
55 <tr class="row$(j)">
\r
56 #if $row['ContentType'] == 'x-tivo-container/folder'
\r
59 <td><img src="/folder.png" alt=""></td>
\r
60 <td><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
61 <td class="unbreak">$(row["TotalItems"]) Items</td>
\r
62 <td class="unbreak">$row["LastChangeDate"]</td>
\r
66 #if 'Url' in $row and not ($row['Url'] in $status and ($status[$row['Url']]['running'] or $status[$row['Url']]['queued'])) and not ('CopyProtected' in $row and $row['CopyProtected'] == 'Yes') and not ('Icon' in $row and $row['Icon'] == 'urn:tivo:image:in-progress-recording')
\r
67 <input type="checkbox" name="Url" value="$escape($row['Url'])">
\r
71 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
72 <img src="/nocopy.png" alt="">
\r
73 #elif 'Icon' in $row
\r
74 <!-- Display icons similar to TiVo colored circles -->
\r
75 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
76 <img src="/soon.png" alt="">
\r
77 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
78 <img src="/expired.png" alt="">
\r
79 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
80 <img src="/kuid.png" alt="">
\r
81 #else if $row['Icon'] == 'urn:tivo:image:in-progress-recording'
\r
82 <img src="/recording.png" alt="">
\r
87 #if 'episodeTitle' in $row
\r
88 <span class="progtitle">$escape($row['title']): $escape($row['episodeTitle'])</span>
\r
90 <span class="progtitle">$escape($row['title'])</span>
\r
92 <span class="progdesc">#if 'description' in $row
\r
93 $escape($row['description'])
\r
95 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
96 $row['displayMajorNumber'] $row['callsign']
\r
99 #if 'Url' in $row and row['Url'] in $status
\r
100 #set $this_status = $status[$row['Url']]
\r
101 #if $this_status['running'] and $this_status['rate'] != ""
\r
102 <div class="transferring">
\r
103 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
104 Transfering - $this_status['rate']<br>$gb
\r
105 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])">Stop Transfer</a>
\r
107 #elif $this_status['running'] and $this_status['rate'] == ""
\r
108 <div class="transferring">
\r
109 Initiating Transfer<br>
\r
112 #elif $this_status['error']
\r
113 <div class="failed">
\r
114 Error - $this_status['error']<br>
\r
116 #elif $this_status['finished']
\r
120 #elif $this_status['queued']
\r
121 <div class="queued">
\r
122 Queued: $queue.index($row['Url'])<br>
\r
123 <a href="/TiVoConnect?Command=Unqueue&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP">Unqueue</a>
\r
128 <td class="unbreak">$row['SourceSize'] <br>
\r
131 <td class="unbreak">$row['CaptureDate']</td>
\r
135 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
\r
136 <tr><td colspan="5">
\r
137 #set $Offset = $shows_per_page - 1
\r
138 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Next Page</a>
\r
143 <input type="hidden" name="Command" value="ToGo">
\r
144 <input type="hidden" name="Container" value="$container">
\r
145 <input type="hidden" name="TiVo" value="$tivoIP">
\r
146 #if $has_tivodecode
\r
147 <input type="checkbox" name="decode">Decrypt with tivodecode<br>
\r
149 <input type="checkbox" name="save">Save metadata to .txt<br>
\r
150 #if $togo_mpegts == 'default'
\r
151 <input type="checkbox" checked name="ts_format">Transfer as mpeg-ts<br>
\r
152 #elif $togo_mpegts == 'enabled'
\r
153 <input type="checkbox" name="ts_format">Transfer as mpeg-ts<br>
\r
157 <input value="Transfer Selected" type="submit">
\r