WOW, so many news mail in freevo-devel in one night :)

Rob Shortt wrote:
> Justin Wetherell wrote:
>> Here is the tvepg-0 log file after calling "freevo-epg update"
>
> ...
>
>>   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=%s  fmt=%s" %
>> ValueError: time data did not match format:  data=20060808  fmt=%Y-%m-%d

[...]

> Here 2005-11-26 matches that format.  Some of my programs only have the
> year portion though (ie: <date>1994</date>) and it doesn't error.

For me it looks like the parser is broken. I don't have the spec right
now (XMLTV Wiki seems to be broken) but date should be %Y-%m-%d. I
don't think we are the only project with that problem. Yes, we could
make a patch that supports %Y%m%d, but that seems like an ugly
solution to me. What's next? We can't support 10 or 20 different
formats. IMHO the XMLTV people need to fix this. On the other hand: do
we need <date> at all? We could just drop it if it is nonsense or
don't parse it at all.


Dischi

-- 
Whenever a system becomes completely defined, some damn fool discovers
something which either abolishes the system or expands it beyond recognition.

Attachment: pgpqYwEAp1uTt.pgp
Description: PGP signature

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

Reply via email to