Author: rshortt
Date: Sun Mar 12 16:45:09 2006
New Revision: 1277

Modified:
   trunk/WIP/epg2/src/source_vdr.py

Log:
Unicode fix.


Modified: trunk/WIP/epg2/src/source_vdr.py
==============================================================================
--- trunk/WIP/epg2/src/source_vdr.py    (original)
+++ trunk/WIP/epg2/src/source_vdr.py    Sun Mar 12 16:45:09 2006
@@ -35,6 +35,7 @@
 import logging
 
 # kaa imports
+from kaa.base import strutils
 import kaa.notifier
 
 # vdr imports
@@ -122,8 +123,8 @@
 
         log.info('Adding channel: %s as %s' % (c.id, access_id))
 
-        chan_db_id = info.epg._add_channel_to_db(tuner_id=Unicode(access_id), 
-                                                 short_name=Unicode(c.name), 
+        chan_db_id = 
info.epg._add_channel_to_db(tuner_id=strutils.str_to_unicode(access_id), 
+                                                 
short_name=strutils.str_to_unicode(c.name), 
                                                  long_name=None)
 
         for e in c.events:
@@ -135,7 +136,7 @@
                 desc = ''
 
             info.epg._add_program_to_db(chan_db_id, e.start, 
int(e.start+e.dur),
-                                        Unicode(e.title), Unicode(desc))
+                                        strutils.str_to_unicode(e.title), 
strutils.str_to_unicode(desc))
 
             info.cur +=1
             if info.cur % info.progress_step == 0:


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to