On 04/11/2007 11:57 AM, Dirk Meyer wrote:
> | - timestr = timestr.replace('EST', '')
> | - secs = time.mktime(time.strptime(timestr,'%Y-%m-%d %H:%M:%S')
[...]
> | <programme start="20070215200000 +0100" stop="20070215201500 +0100"
> channel="ard.de">
> | <title lang="de">Tagesschau</title>
>
> So, first of all, your new way of parsing seems to be correct (without
> the minus chars). Why is it working at all right now? Are there xmltv
> files with minus?That's a very good question. My xmltv tv file doesn't have times in the hyphen-delimited format. It's possible that code never worked, and it's also possible it didn't ever get executed. As long as the timezone stored in the xml was in the form [+-]\d+ or if it was 'CET', that block of code would not get executed. This function was written by Rob in the first pass of kaa.epg (before I rewrote it), IIRC. Assign blame where appropriate. :) Jason. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
