Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1:/tmp/cvs-serv9406

Modified Files:
        record_video.py tv.py 
Log Message:
Display the channel's friendly (display name) in the tuner popupbox.

Since XMLTV 0.6.11 uses what they call "RFC" channel names which are
very long and don't reveal much about the channel.

This will obviously have no regressive effect, since users had the
friendly name before. 


Index: record_video.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/record_video.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** record_video.py     24 Jun 2003 21:08:41 -0000      1.18
--- record_video.py     29 Jun 2003 15:01:31 -0000      1.19
***************
*** 10,13 ****
--- 10,22 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.19  2003/06/29 15:01:31  outlyer
+ # Display the channel's friendly (display name) in the tuner popupbox.
+ #
+ # Since XMLTV 0.6.11 uses what they call "RFC" channel names which are
+ # very long and don't reveal much about the channel.
+ #
+ # This will obviously have no regressive effect, since users had the
+ # friendly name before.
+ #
  # Revision 1.18  2003/06/24 21:08:41  outlyer
  # Use the episode title if available in the recording filename.
***************
*** 300,303 ****
--- 309,313 ----
  
      tunerid = tv.get_tunerid(recinfo.channel)
+     tunername = tv.get_friendly_channel(recinfo.channel)
  
      # Start timestamp
***************
*** 344,348 ****
  
      s = 'Scheduled recording:\n'
!     s += 'Channel %s\n' % recinfo.channel
      s += '%s %s %s min' % (recinfo.start_date.selected, recinfo.start_time.selected,
                             recinfo.length.selected)
--- 354,358 ----
  
      s = 'Scheduled recording:\n'
!     s += 'Channel %s\n' % tunername
      s += '%s %s %s min' % (recinfo.start_date.selected, recinfo.start_time.selected,
                             recinfo.length.selected)

Index: tv.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tv.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** tv.py       2 Jun 2003 21:29:22 -0000       1.13
--- tv.py       29 Jun 2003 15:01:31 -0000      1.14
***************
*** 10,13 ****
--- 10,22 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.14  2003/06/29 15:01:31  outlyer
+ # Display the channel's friendly (display name) in the tuner popupbox.
+ #
+ # Since XMLTV 0.6.11 uses what they call "RFC" channel names which are
+ # very long and don't reveal much about the channel.
+ #
+ # This will obviously have no regressive effect, since users had the
+ # friendly name before.
+ #
  # Revision 1.13  2003/06/02 21:29:22  outlyer
  # Changed the "Schedule Editor" to show up in the TV Submenu, along with "Guide" and
***************
*** 98,101 ****
--- 107,120 ----
          if tv_channel_id == channel_id:
              return tv_tuner_id
+ 
+     AlertBox(text='Could not find TV channel %s' % channel_id).show()
+     return None
+ 
+ def get_friendly_channel(channel_id):
+     channel_name = None
+     for vals in config.TV_CHANNELS:
+         tv_channel_id, tv_display_name, tv_tuner_id = vals[:3]
+         if tv_channel_id == channel_id:
+             return tv_display_name
  
      AlertBox(text='Could not find TV channel %s' % channel_id).show()




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to