Re: tv_extractinfo_en problem :(

Nick Morrott <[email protected]>
Newsgroups gmane.comp.tv.xmltv.general
Message-ID <[email protected]>
On 2 February 2011 19:36, Gunga Din II <[email protected]> wrote:
> Hi Nick!
>
> Good news, sort of....
>
> tv_extractinfo_en seems to be doing it's job again, and data is appearing at
> the end of the pipe....
>
> It seems to have started working again on the 1st,  so at a guess it must have
> be something in the listings that has just expires, so something from the
> listing for the 31st Jan perhaps?

Just had a look at this for you - you were correct in that the
offending entry was for 2011-01-31. It turns out the issue was with
"James May's Toy Stories" on Dave @ 20110131000000 +0000. The
description included the text "the original 2.75-mile circuit" and the
distance was being interpreted as a valid time by tv_extractinfo_en,
causing Date::Manip to fail:

testing word 2.75 at position 37
word is '2.75'
trying 2.75 as 24 hour time
found a time that interprets: 2:75
Can't use an undefined value as an ARRAY reference at
/usr/share/perl5/Date/Manip.pm line 517.

> Is there any way to make tv_extractinfo_en  more verbose when trying to debug
> this sort of problem? Error reporting seems to be limited to the Perl module
> that complains, but it's hard to tell exactly where in the input it had the
> problem, any tips?

Turning on Log::TraceMessages within tv_extractinfo_en revealed the
above issue almost immediately. It looks as though only text matching
x.00 - x.59 should be considered valid timing data for the purposes of
identifying multipart programmes - this handling occurs in the
special_multipart subroutine. I'd need to look further at extractinfo
to see whether fatal errors can be handled more gracefully - I did
this with uk_rt and now it only errors out on the most serious
problems.

Cheers,
Nick

-- 
Nick Morrott

MythTV Official wiki: http://mythtv.org/wiki/
MythTV users list archive: http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
xmltv-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltv-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.