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</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">
\r
11 <a href="/">pyTivo</a> /
\r
13 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">
\r
19 #set $folders = $title.split('/')[1:]
\r
20 #for $f in $folders[:-1]
\r
31 <tr><td colspan="5">
\r
32 #set $Offset = -($ItemStart + 1)
\r
33 #if $Offset < -($shows_per_page+1)
\r
34 #set $Offset = -($shows_per_page+1)
\r
36 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$quote($folder)">Previous Page</a>
\r
40 ## i variable is used to alternate colors of row
\r
41 ## loop through passed data printing row for each show or folder
\r
45 <tr class="row$(j)">
\r
46 #if $row['ContentType'].startswith('x-tivo-container')
\r
49 <td><img src="/folder.png" alt=""></td>
\r
50 <td class="progmain"><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$quote(row["Url"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
51 <td class="progsize">$row["TotalItems"] Items</td>
\r
52 <td class="progdate">$row["LastChangeDate"]</td>
\r
56 #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
57 <input type="checkbox" name="Url" value="$row['Url']">
\r
61 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
62 <img src="/nocopy.png" alt="">
\r
63 #elif 'Icon' in $row
\r
64 <!-- Display icons similar to TiVo colored circles -->
\r
65 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
66 <img src="/soon.png" alt="">
\r
67 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
68 <img src="/expired.png" alt="">
\r
69 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
70 <img src="/kuid.png" alt="">
\r
71 #else if $row['Icon'] == 'urn:tivo:image:in-progress-recording'
\r
72 <img src="/recording.png" alt="">
\r
76 <td class="progmain">
\r
77 #if 'episodeTitle' in $row
\r
78 <span class="progtitle">$row['title']: $row['episodeTitle']</span>
\r
80 <span class="progtitle">$row['title']</span>
\r
82 <span class="progdesc">#if 'description' in $row
\r
85 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
86 $row['displayMajorNumber'] $row['callsign']
\r
89 #if 'Url' in $row and row['Url'] in $status
\r
90 #set $this_status = $status[$row['Url']]
\r
91 #if $this_status['running'] and $this_status['rate'] != ""
\r
92 <div class="transferring">
\r
93 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
94 Transfering - $this_status['rate']<br>$gb
\r
95 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])">Stop Transfer</a>
\r
97 #elif $this_status['running'] and $this_status['rate'] == ""
\r
98 <div class="transferring">
\r
99 Initiating Transfer<br>
\r
102 #elif $this_status['error']
\r
103 <div class="failed">
\r
104 Error - $this_status['error']<br>
\r
106 #elif $this_status['finished']
\r
110 #elif $this_status['queued']
\r
111 <div class="queued">
\r
112 Queued: $queue.index($row['Url'])<br>
\r
113 <a href="/TiVoConnect?Command=Unqueue&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP">Unqueue</a>
\r
118 <td class="progsize">
\r
119 #if 'SourceSize' in $row
\r
123 #if 'Duration' in $row
\r
127 <td class="progdate">
\r
128 #if 'CaptureDate' in $row
\r
129 $row['CaptureDate']
\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=$quote($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
151 <input type="checkbox" name="ts_format">Transfer as mpeg-ts<br>
\r
155 <input value="Transfer Selected" type="submit">
\r