1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>pyTivo - Push</title>
6 <link rel="stylesheet" type="text/css" href="/main.css">
9 #set $folders = $name.split('/')
10 <form action="/TiVoConnect" method="POST">
11 <p id="titlep"><span id="title">
12 <a href="/">pyTivo</a> /
14 <a href="/TiVoConnect?Command=QueryContainer&Container=$quote($folders[0])&Format=text/html">
16 Push from $escape($folders[0])
20 #for $pos, $n in enumerate($folders[1:-1])
21 #set $ppath = '/'.join($folders[:$pos + 2])
22 / <a href="/TiVoConnect?Command=QueryContainer&Container=$quote($ppath)&Format=text/html">$n</a>
25 / $escape($folders[-1])
30 ## i variable is used to alternate colors of row
31 ## loop through passed data printing row for each show or folder
32 #for $video in $videos
39 <td><img src="/folder.png" alt=""></td>
40 <td class="progmain"><a href="/TiVoConnect?Command=QueryContainer&Container=$quote($name)/$quote($video.name)&Format=text/html">$video.title</a></td>
41 <td class="progsize">$video.total_items Items</td>
42 <td class="progdate">$video.textDate</td>
46 <input type="checkbox" name="File" value="$escape($video.part_path)">
50 #if $video.episodeTitle
51 <span class="progtitle">$escape($video.title): $escape($video.episodeTitle)</span>
53 <span class="progtitle">$escape($video.title)</span>
55 <span class="progdesc">
56 #if $video.description
57 $escape($video.description)
59 #if $video.displayMajorNumber and $video.callsign
60 $video.displayMajorNumber $video.callsign
64 <td class="progsize">$video.textSize</td>
65 <td class="progdate">$video.textDate</td>
71 <input type="hidden" name="Command" value="Push">
72 <input type="hidden" name="Container" value="$escape($name)">
75 #if 'name' in $tivos[$tivo]
76 <option>$escape($tivos[$tivo]['name'])</option>
80 <input value="Send to TiVo" type="submit">