/usr/lib/python2.4/site-packages/kaa/epg/source_xmltv.py
Changed from:
elif child.name == "date":
fmt = "%Y-%m-%d"
if len(child.content) == 4:
fmt = "%Y"
attr['date'] = int(time.mktime(time.strptime(child.content, fmt)))
Changed to:
elif child.name == "date":
fmt = "%Y-%m-%d"
if len(child.content) == 4:
fmt = "%Y"
try:
attr['date'] = int(time.mktime(time.strptime(child.content, fmt)))
except:
log.info('Failed first format type')
continue
fmt = "%Y%m%d"
try:
attr['date'] = int(time.mktime(time.strptime(child.content, fmt)))
except:
log.info('Failed second format type')
continue
On 8/9/06, Justin Wetherell <[EMAIL PROTECTED]> wrote:
Here is the tvepg-0 log file after calling "freevo-epg update"
2006-08-09 11:35:36,564 INFO [ xmltv] source_xmltv.py 239: grabbing listings using /usr/bin/tv_grab_na_dd
2006-08-09 11:35:37,557 INFO [ rpc] rpc.py 273: no data received
2006-08-09 11:35:37,563 INFO [ rpc] rpc.py 240: close socket for <kaa.rpc.server.channel 9
2006-08-09 11:35:37,565 WARNING [ epg] server.py 148: disconnect client <kaa.rpc.server.channel - disconnected
2006-08-09 11:36:16,182 INFO [ xmltv] source_xmltv.py 265: not configured to use tv_sort, skipping
2006-08-09 11:36:16,183 INFO [ xmltv] source_xmltv.py 270: parse xml file
2006-08-09 11:36:16,418 INFO [notifier] thread.py 189: create thread notifier pipe
2006-08-09 11:36:16,883 INFO [ epg] server.py 245: add channel [u'41'] AMC AMC
[clip ... ]
2006-08-09 11:36:17,277 INFO [ epg] server.py 245: add channel [u'34'] CSNPHL Comcast SportsNet Philadelphia
2006-08-09 11:36:17,283 INFO [ epg] server.py 231: update channel Satellite
2006-08-09 11:36:17,288 INFO [ epg] server.py 245: add channel [u'63'] DHC Discovery Health
2006-08-09 11:36:17,294 INFO [ epg] server.py 245: add channel [u'61'] STYLE Style
2006-08-09 11:36:17,299 INFO [ epg] server.py 231: update channel Cablecast
2006-08-09 11:36:17,305 INFO [ epg] server.py 231: update channel Cablecast
2006-08-09 11:36:17,310 INFO [ epg] server.py 245: add channel [u'95'] WWSI WWSI-TV
2006-08-09 11:36:17,333 ERROR [notifier] nf_generic.py 162: removed timer 87
Traceback (most recent call last):
File "/usr/local/src/freevo/lib/python2.4/site-packages/notifier/nf_generic.py", line 145, in step
if not timer[ CALLBACK ]():
File "../base/build/lib.linux-i686-2.4/kaa/notifier/timer.py", line 88, in __call__
File "../base/build/lib.linux-i686-2.4/kaa/notifier/callback.py", line 228, in __call__
File "../base/build/lib.linux-i686-2.4/kaa/notifier/callback.py", line 159, in __call__
File "/usr/lib/python2.4/site-packages/kaa/epg/source_xmltv.py", line 308, in _update_process_step
parse_programme(info)
File "/usr/lib/python2.4/site-packages/kaa/epg/source_xmltv.py", line 203, in parse_programme
attr['date'] = int(time.mktime(time.strptime(child.content, fmt)))
File "/usr/lib/python2.4/_strptime.py", line 292, in strptime
raise ValueError("time data did not match format: data="" fmt=%s" %
ValueError: time data did not match format: data="" fmt=%Y-%m-%d
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
