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">
\r
11 <a href="/">pyTivo</a> /
\r
13 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP">
\r
15 Pull from $escape($tname)
\r
17 </a> / $escape($title)
\r
22 <tr><td colspan="5">
\r
23 #set $Offset = -($ItemStart + 1)
\r
24 #if $Offset < -($shows_per_page+1)
\r
25 #set $Offset = -($shows_per_page+1)
\r
27 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Previous Page</a>
\r
31 ## i variable is used to alternate colors of row
\r
32 ## loop through passed data printing row for each show or folder
\r
36 <tr class="row$(j)">
\r
37 #if $row['ContentType'] == 'x-tivo-container/folder'
\r
40 <td><img src="/folder.png" alt=""></td>
\r
41 <td class="progmain"><a href='/TiVoConnect?Command=NPL&Container=$quote($container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td>
\r
42 <td class="unbreak">$(row["TotalItems"]) Items</td>
\r
43 <td class="unbreak">$row["LastChangeDate"]</td>
\r
47 #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
48 <input type="checkbox" name="Url" value="$escape($row['Url'])">
\r
52 #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes'
\r
53 <img src="/nocopy.png" alt="">
\r
54 #elif 'Icon' in $row
\r
55 <!-- Display icons similar to TiVo colored circles -->
\r
56 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording'
\r
57 <img src="/soon.png" alt="">
\r
58 #else if $row['Icon'] == 'urn:tivo:image:expired-recording'
\r
59 <img src="/expired.png" alt="">
\r
60 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording'
\r
61 <img src="/kuid.png" alt="">
\r
62 #else if $row['Icon'] == 'urn:tivo:image:in-progress-recording'
\r
63 <img src="/recording.png" alt="">
\r
67 <td class="progmain">
\r
68 #if 'episodeTitle' in $row
\r
69 <span class="progtitle">$escape($row['title']): $escape($row['episodeTitle'])</span>
\r
71 <span class="progtitle">$escape($row['title'])</span>
\r
73 <span class="progdesc">#if 'description' in $row
\r
74 $escape($row['description'])
\r
76 #if 'displayMajorNumber' in $row and 'callsign' in $row
\r
77 $row['displayMajorNumber'] $row['callsign']
\r
80 #if 'Url' in $row and row['Url'] in $status
\r
81 #set $this_status = $status[$row['Url']]
\r
82 #if $this_status['running'] and $this_status['rate'] != ""
\r
83 <div class="transferring">
\r
84 #set $gb = '%.3f GB' % (float($this_status['size']) / (1024 ** 3))
\r
85 Transfering - $this_status['rate']<br>$gb
\r
86 <a href="/TiVoConnect?Command=ToGoStop&Container=$quote($container)&Url=$quote($row['Url'])">Stop Transfer</a>
\r
88 #elif $this_status['running'] and $this_status['rate'] == ""
\r
89 <div class="transferring">
\r
90 Initiating Transfer<br>
\r
93 #elif $this_status['error']
\r
94 <div class="failed">
\r
95 Error - $this_status['error']<br>
\r
97 #elif $this_status['finished']
\r
101 #elif $this_status['queued']
\r
102 <div class="queued">
\r
103 Queued: $queue.index($row['Url'])<br>
\r
104 <a href="/TiVoConnect?Command=Unqueue&Container=$quote($container)&Url=$quote($row['Url'])&TiVo=$tivoIP">Unqueue</a>
\r
109 <td class="unbreak">$row['SourceSize'] <br>
\r
112 <td class="unbreak">$row['CaptureDate']</td>
\r
116 #if ($TotalItems - $ItemCount) > ($ItemStart + 1)
\r
117 <tr><td colspan="5">
\r
118 #set $Offset = $shows_per_page - 1
\r
119 <a href="/TiVoConnect?Command=NPL&Container=$quote($container)&TiVo=$tivoIP&AnchorItem=$FirstAnchor&AnchorOffset=$Offset&Folder=$folder">Next Page</a>
\r
124 <input type="hidden" name="Command" value="ToGo">
\r
125 <input type="hidden" name="Container" value="$container">
\r
126 <input type="hidden" name="TiVo" value="$tivoIP">
\r
127 #if $has_tivodecode
\r
128 <input type="checkbox" name="decode">Decrypt with tivodecode<br>
\r
130 <input type="checkbox" name="save">Save metadata to .txt<br>
\r
133 <input value="Transfer Selected" type="submit">
\r