Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29599/src/tv
Modified Files:
channels.py
Log Message:
Make sure chan is a string and add better error handling for clist and freq.
Index: channels.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/channels.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** channels.py 19 Feb 2004 04:57:57 -0000 1.14
--- channels.py 22 Feb 2004 21:22:01 -0000 1.15
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.15 2004/02/22 21:22:01 rshortt
+ # Make sure chan is a string and add better error handling for clist and freq.
+ #
# Revision 1.14 2004/02/19 04:57:57 gsbarbieri
# Support Web Interface i18n.
***************
*** 159,162 ****
--- 162,166 ----
def tunerSetFreq(self, chan, app=None, app_cmd=None):
+ chan = str(chan)
vg = self.getVideoGroup(chan)
***************
*** 167,171 ****
(chan, freq)
else:
! freq = tv.freq.CHANLIST[vg.tuner_chanlist][str(chan)]
if DEBUG:
print 'USING STANDARD FREQUENCY: chan="%s", freq="%s"' % \
--- 171,183 ----
(chan, freq)
else:
! clist = tv.freq.CHANLIST.get(vg.tuner_chanlist)
! if clist:
! freq = clist.get(chan)
! else:
! print _('ERROR: Unable to get chanlist for %s') % vg.tuner_chanlist
! return 0
! if not freq:
! print _('ERROR: Unable to get frequency for %s') % chan
! return 0
if DEBUG:
print 'USING STANDARD FREQUENCY: chan="%s", freq="%s"' % \
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog