Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv5642
Modified Files:
config.py
Log Message:
encode program names to avoid a crash in the web guide
Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** config.py 24 Oct 2003 03:28:08 -0000 1.65
--- config.py 1 Nov 2003 16:28:43 -0000 1.66
***************
*** 23,26 ****
--- 23,29 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.66 2003/11/01 16:28:43 dischi
+ # encode program names to avoid a crash in the web guide
+ #
# Revision 1.65 2003/10/24 03:28:08 krister
# Fixed a bug where the ROM drives autodetection would crash if ROM_DRIVES=None
***************
*** 717,726 ****
for a in xmltv_channels:
if (a['display-name'][1][0][0].isdigit()):
! display_name = a['display-name'][0][0]
! tunerid = a['display-name'][1][0]
else:
! display_name = a['display-name'][1][0]
! tunerid = a['display-name'][0][0]
! id = a['id']
chanlist += [(id,display_name,int(tunerid))]
--- 720,729 ----
for a in xmltv_channels:
if (a['display-name'][1][0][0].isdigit()):
! display_name = a['display-name'][0][0].encode(LOCALE, 'ignore')
! tunerid = a['display-name'][1][0].encode(LOCALE, 'ignore')
else:
! display_name = a['display-name'][1][0].encode(LOCALE, 'ignore')
! tunerid = a['display-name'][0][0].encode(LOCALE, 'ignore')
! id = a['id'].encode(LOCALE, 'ignore')
chanlist += [(id,display_name,int(tunerid))]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog