Author: dmeyer
Date: Tue Mar 21 13:58:47 2006
New Revision: 1313
Modified:
trunk/epg/src/source_xmltv.py
Log:
add some debug
Modified: trunk/epg/src/source_xmltv.py
==============================================================================
--- trunk/epg/src/source_xmltv.py (original)
+++ trunk/epg/src/source_xmltv.py Tue Mar 21 13:58:47 2006
@@ -1,7 +1,10 @@
import sys, time, os, calendar
+import logging
import kaa.notifier
from kaa import xml
+log = logging.getLogger('xmltv')
+
def timestr2secs_utc(timestr):
"""
Convert a timestring to UTC (=GMT) seconds.
@@ -129,7 +132,13 @@
pass
def _update_parse_xml_thread(epg, xmltv_file):
- doc = xml.Document(xmltv_file, 'tv')
+ log.info('parse xml file')
+ try:
+ doc = xml.Document(xmltv_file, 'tv')
+ except:
+ log.exception('error parsing xmltv file')
+ return
+
channel_id_to_db_id = {}
nprograms = 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