Changeset 067058368fae72e00ca897022ced1a24ebcf26f2

Show
Ignore:
Timestamp:
03/14/08 13:36:06 (10 months ago)
Author:
KRKeegan <-NOSPAM-kevin@krkeegan.com>
git-committer:
KRKeegan <-NOSPAM-kevin@krkeegan.com> 1205519766 -0700
git-parent:

[bfacf46f9b25e6e9df6eb27720f9f545283d63c3]

git-author:
KRKeegan <-NOSPAM-kevin@krkeegan.com> 1205519766 -0700
Message:

Add instructions when no TiVo is selected.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/admin/templates/npl.tmpl

    re5ddd2a r0670583  
    2727      <td> 
    2828      <div style="visibility: visible; width: 920px; overflow: scroll; height: 410px; position: relative;"> 
    29       <table> 
    30       #if $folder != '' 
    31         <tr><td colspan=5><a href="/TiVoConnect?Command=NPL&Container=$container&TiVo=$tivoIP">Back to Now Playing List</a></td></tr> 
    32       #end if 
    33       #set $i = 0 
    34           #for $row in $data 
    35                   #set $i += 1 
    36                   #if $i%2 
    37                         <tr style="background-color: rgb(250, 250, 250);"> 
    38                   #else 
    39                         <tr> 
     29      #if $tivoIP != '' 
     30                  <table> 
     31                  #if $folder != '' 
     32                        <tr><td colspan=5><a href="/TiVoConnect?Command=NPL&Container=$container&TiVo=$tivoIP">Back to Now Playing List</a></td></tr> 
    4033                  #end if 
    41                   #if $row['ContentType'] == 'x-tivo-container/folder' 
    42                         <td></td> 
    43                         <td><a href='/TiVoConnect?Command=NPL&Container=$(container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td> 
    44                         <td NOWRAP align="center">$(row["TotalItems"]) Items</td> 
    45                         <td NOWRAP align="center">$row["LastChangeDate"]</td> 
    46                         <td></td> 
    47                   #else 
    48                         #if 'Icon' in $row 
    49                                 #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording' 
    50                                         <td><table><tr><td height=18 width=8 bgcolor='yellow'> </td></tr></table></td> 
    51                                 #else if $row['Icon'] == 'urn:tivo:image:expired-recording' 
    52                                         <td><table><tr><td height=18 width=8 bgcolor='yellow'><b> ! </b></td></tr></table></td> 
    53                                 #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording' 
    54                                         <td><table><tr><td height=18 width=8 bgcolor='green'></td></tr></table></td>                             
     34                  #set $i = 0 
     35                  #for $row in $data 
     36                          #set $i += 1 
     37                          #if $i%2 
     38                                <tr style="background-color: rgb(250, 250, 250);"> 
     39                          #else 
     40                                <tr> 
     41                          #end if 
     42                          #if $row['ContentType'] == 'x-tivo-container/folder' 
     43                                <td></td> 
     44                                <td><a href='/TiVoConnect?Command=NPL&Container=$(container)&Folder=$(row["UniqueId"])&TiVo=$tivoIP'>$row['Title'] </a></td> 
     45                                <td NOWRAP align="center">$(row["TotalItems"]) Items</td> 
     46                                <td NOWRAP align="center">$row["LastChangeDate"]</td> 
     47                                <td></td> 
     48                          #else 
     49                                #if 'Icon' in $row 
     50                                        #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording' 
     51                                                <td><table><tr><td height=18 width=8 bgcolor='yellow'> </td></tr></table></td> 
     52                                        #else if $row['Icon'] == 'urn:tivo:image:expired-recording' 
     53                                                <td><table><tr><td height=18 width=8 bgcolor='yellow'><b> ! </b></td></tr></table></td> 
     54                                        #else if $row['Icon'] == 'urn:tivo:image:save-until-i-delete-recording' 
     55                                                <td><table><tr><td height=18 width=8 bgcolor='green'></td></tr></table></td>                             
     56                                        #else 
     57                                                <td width=8></td> 
     58                                        #end if 
    5559                                #else 
    56                                         <td width=8></td> 
     60                                        <td width=4></td> 
    5761                                #end if 
    58                         #else 
    59                                 <td width=4></td> 
    60                         #end if 
    61                         <td width=*> 
    62                                 <b>$row['Title']: $row['EpisodeTitle']</b><br> 
    63                                 <small>$row['Description']   
    64                                 $row['SourceChannel'] $row['SourceStation']</small> 
    65                         </td> 
    66                         <td NOWRAP align="center">$row['SourceSize'] <br> 
    67                         $row['Duration'] 
    68                         </td> 
    69                         <td NOWRAP align="center">$row['CaptureDate']</td> 
    70                         #if 'Url' in $row 
    71                                 <td NOWRAP> 
    72                                 #if $unquote($row['Url']) in $status 
    73                                         #set $this_status = $status[$unquote($row['Url'])] 
    74                                         #if $this_status['running'] and $this_status['rate'] != "" 
    75                                                 Transfering - $this_status['rate'] KB/s<br> 
    76                                                 <a href="/TiVoConnect?Command=ToGoStop&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Stop Transfer</a> 
    77                                         #elif $this_status['running'] and $this_status['rate'] == "" 
    78                                                 Initiating Transfer.<br> 
    79                                                 Please Wait 
    80                                         #elif $this_status['error'] 
    81                                                 Error - $this_status['error']<br> 
    82                                                 <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Try Transfer Again.</a> 
    83                                         #elif $this_status['finished'] 
    84                                                 Transfer Complete! 
     62                                <td width=*> 
     63                                        <b>$row['Title']: $row['EpisodeTitle']</b><br> 
     64                                        <small>$row['Description']   
     65                                        $row['SourceChannel'] $row['SourceStation']</small> 
     66                                </td> 
     67                                <td NOWRAP align="center">$row['SourceSize'] <br> 
     68                                $row['Duration'] 
     69                                </td> 
     70                                <td NOWRAP align="center">$row['CaptureDate']</td> 
     71                                #if 'Url' in $row 
     72                                        <td NOWRAP> 
     73                                        #if $unquote($row['Url']) in $status 
     74                                                #set $this_status = $status[$unquote($row['Url'])] 
     75                                                #if $this_status['running'] and $this_status['rate'] != "" 
     76                                                        Transfering - $this_status['rate'] KB/s<br> 
     77                                                        <a href="/TiVoConnect?Command=ToGoStop&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Stop Transfer</a> 
     78                                                #elif $this_status['running'] and $this_status['rate'] == "" 
     79                                                        Initiating Transfer.<br> 
     80                                                        Please Wait 
     81                                                #elif $this_status['error'] 
     82                                                        Error - $this_status['error']<br> 
     83                                                        <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Try Transfer Again.</a> 
     84                                                #elif $this_status['finished'] 
     85                                                        Transfer Complete! 
     86                                                #else 
     87                                                        Transfer Stopped<br> 
     88                                                        <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Try Transfer Again.</a> 
     89                                                #end if 
    8590                                        #else 
    86                                                 Transfer Stopped<br
    87                                                <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Try Transfer Again.</a> 
    88                                         #endif 
     91                                                <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Transfer This.</a
     92                                        #end if 
     93                                        </td> 
    8994                                #else 
    90                                         <a href="/TiVoConnect?Command=ToGo&Container=$(container)&Url=$(row['Url'])&TiVo=$tivoIP&Folder=$folder">Transfer This.</a
     95                                        <td></td
    9196                                #end if 
    92                                 </td> 
    93                         #else 
    94                                 <td></td> 
    95                         #end if 
    96                   #end if 
    97                   </tr> 
    98       #end for 
    99       </table> 
     97                          #end if 
     98                          </tr> 
     99                  #end for 
     100                  </table> 
     101          #else 
     102                  <!-- No TiVo IP Provided so display instructions --> 
     103                  <h2>Instructions</h2> 
     104                   
     105                  <b>Required Settings:</b><br> 
     106                  In order to view the shows on your TiVo, pyTivo needs to know your Media Access Key.  Enter this information above and  
     107                  click save.  This information is stored on your computer and is never passed outside of your network.<br><br> 
     108                   
     109                  In order to download shows from your TiVo, pyTivo needs to know the destination directory to save the files to.   
     110                  Enter this information above and click save.<br><br> 
     111                   
     112                  <b>To View Your TiVo</b><br> 
     113                  Select the desired TiVo based on the TiVo Service Number and click "View Now Playing List"<br><br> 
     114                   
     115                  <b>My TiVo is Not Listed</b><br> 
     116                  pyTivo builds a list of TiVos on the network based on the TiVos that contact pyTivo.  If pyTivo has been running less  
     117                  than 5 minutes your TiVo may not have contacted pyTivo yet.  To force a connection open your Now Playing List on your  
     118                  TiVo.  If your TiVo is still not listed in pyTivo - ToGo please confirm that your TiVo is able to connect to the pyTivo  
     119                  server.<br><br> 
     120                   
     121                  <b>To Download a Show</b><br> 
     122                  Find your desired show in the list and click Transfer Now.  The transfer will begin momentarily.  Note: TiVo can only  
     123                  transfer 1 show at a time.<br><br> 
     124                   
     125                  <b>I get an Error 503</b><br> 
     126                  TiVo can only tranfer one file at a time.  If you receive this error wait a few minutes and try the transfer again.<br><br> 
     127                   
     128                  <b>What will the name of my transferred show be</b><br> 
     129                  The name will be the show title followed by a hyphen and a unique number.  This prevents accidental overwriting and may  
     130                  allow for resuming transfers in the future**. This is not yet supported<br><br>. 
     131          #end if 
    100132      </div> 
    101133      </td>