1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>pyTivo - ToGo</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
7 <link rel="stylesheet" type="text/css" href="/main_mob.css">
10 #set $folders = $title.split('/')[1:]
11 <form action="/TiVoConnect" method="POST">
12 <script language="JavaScript">
14 function toggle(source) {
15 var checkboxes = document.getElementsByName('Url');
16 for (var i = 0; i < checkboxes.length; i++) {
17 if (typeof(checkboxes[i].checked) != "undefined") {
18 checkboxes[i].checked = source.checked;
24 <p id="title"><a id="titleA" href="/">pyTiVo</a></p>
30 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">
36 #set $folders = $title.split('/')[1:]
37 #for $f in $folders[:-1]
46 <td><input type="checkbox" name="selectAll" onClick="toggle(this)" Title="Select All" /></td>
49 ## i variable is used to alternate colors of row
50 ## loop through passed data printing row for each show or folder
55 #if $row['ContentType'].startswith('x-tivo-container')
57 <td id="ColA"><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$quote(row["Url"])&TiVo=$tivoIP'>$row['Title'] </a></td>
58 <td id="ColB"><div id="count">$(row["TotalItems"])</div></td>
59 <td id="ColC"><img src="/iphonearrow.png" alt=""></td>
63 #if 'episodeTitle' in $row
64 <span class="progtitle">$row['title']: $row['episodeTitle']</span>
66 <span class="progtitle">$row['title']</span>
68 <span class="progdesc">'
69 #if 'description' in $row
72 #if 'displayMajorNumber' in $row and 'callsign' in $row
73 $row['displayMajorNumber'] $row['callsign']
76 <span class="rectxt">Recorded on </span>
77 <span class="recdate">$row['CaptureDate']</span>
78 #if 'Url' in $row and row['Url'] in $status
79 #set $this_status = $status[$row['Url']]
80 #if $this_status['running'] and $this_status['rate'] != ""
81 <div class="transferring">
82 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
83 Transfering - $this_status['rate']<br>$gb
84 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])">Stop Transfer</a>
86 #elif $this_status['running'] and $this_status['rate'] == ""
87 <div class="transferring">
88 Initiating Transfer<br>
91 #elif $this_status['error']
93 Error - $this_status['error']<br>
95 #elif $this_status['finished']
99 #elif $this_status['queued']
101 Queued: $queue.index($row['Url'])<br>
102 <a href="/TiVoConnect?Command=Unqueue&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP">Unqueue</a>
108 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
109 <img src="/nocopy.png" alt="">
111 <!-- Display icons similar to TiVo colored circles -->
112 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
113 <img src="/soon.png" alt="">
114 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
115 <img src="/expired.png" alt="">
116 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
117 <img src="/kuid.png" alt="">
118 #else if $row['Icon'] == 'urn:tivo:image:in-progress-recording'
119 <img src="/recording.png" alt="">
124 #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')
125 <input type="checkbox" name="Url" value="$row['Url']">
131 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
133 #set $Offset = $shows_per_page - 1
134 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$quote($folder)">Next Page</a>
139 <input type="hidden" name="Command" value="ToGo">
140 <input type="hidden" name="Container" value="$container">
141 <input type="hidden" name="TiVo" value="$tivoIP">
142 <input type="checkbox" checked name="save">Metadata<br>
144 <input type="checkbox" checked name="ts_format">Transfer as mpeg-ts<br>
149 <input type="checkbox" checked name="decode">Decrypt
151 <input style="font-size:16px" value="Transfer" type="submit">