Author: rshortt
Date: Thu Mar  9 13:45:49 2006
New Revision: 8066

Modified:
   trunk/WIP/RobShortt/tvserver-epg2/bin/freevo-epg

Log:
VDR and unicode fix.


Modified: trunk/WIP/RobShortt/tvserver-epg2/bin/freevo-epg
==============================================================================
--- trunk/WIP/RobShortt/tvserver-epg2/bin/freevo-epg    (original)
+++ trunk/WIP/RobShortt/tvserver-epg2/bin/freevo-epg    Thu Mar  9 13:45:49 2006
@@ -157,12 +157,13 @@
 
  
         if epg.config.vdr.activate == 1:
-            guide.update("vdr", vdr_dir=epg.config.vdr.dir, 
-                         channels_file=epg.config.vdr.channels_file, 
-                         epg_file=epg.config.vdr.epg_file,
-                         host=epg.config.vdr.host, port=epg.config.vdr.port, 
-                         access_by=epg.config.vdr.access_by, 
-                         limit_channels=epg.config.vdr.limit_channels)
+            log.info('configured to use VDR')
+            guide.update("vdr", vdr_dir=str(epg.config.vdr.dir), 
+                         channels_file=str(epg.config.vdr.channels_file), 
+                         epg_file=str(epg.config.vdr.epg_file),
+                         host=str(epg.config.vdr.host), 
port=int(epg.config.vdr.port), 
+                         access_by=str(epg.config.vdr.access_by), 
+                         limit_channels=str(epg.config.vdr.limit_channels))
 
         else:
             log.info('not configured to use VDR')
@@ -197,9 +198,9 @@
         
         for program in programs:
             start_time = time.strftime("%a %H:%M", 
time.localtime(program.start))
-            print "  %s (%s): %s" % (program.channel.short_name, start_time, 
program.title.encode('latin-1'))
-            if program.desc:
-                print "\t* " + "\n\t  
".join(textwrap.wrap(program.desc.encode('latin-1'), 60))
+            print "  %s (%s): %s" % 
(program.channel.short_name.encode('latin-1'), start_time, 
program.title.encode('latin-1'))
+            if program.description:
+                print "\t* " + "\n\t  
".join(textwrap.wrap(program.description.encode('latin-1'), 60))
 
         print "- Queried %d programs; %s results; %.04f seconds" % \
               (guide.get_num_programs(), len(programs), t1-t0)


-------------------------------------------------------
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