[mythtv-users] XMLTV not working?

Brent Ellis bellis at matchschool.org
Sat Aug 30 01:22:39 EDT 2003


Is anyone having a problem with XMLTV not getting listings because of 
an error in line 1025 of ZapListings.pm?  Did tvguide.com or wherever 
xmltv gets listing from change their format or something.  It just 
seems like it is not getting the data the way it expects to.

here is the code in context:

for my $row (split(/<tr/, $html)) {
         # nuke everything leading up to first >
         # which amounts to html attributes of <tr used in split
         $row=~s/^[^>]*>//so;
         $row=~s/<\/tr>.*//so;

         $rowNumber++;

         # remove space from leading space (and newlines) on every line 
of html
         $row=~s/[\r\n]+\s*//og;

         my $result=new XMLTV::ZapListings::ScrapeRow()->parse($row);

         my $desc=$result->summarize();   # This appears to be the row 
that has the problem.
         next if ( !$desc );

         my $nchannel;



-Brent



More information about the mythtv-users mailing list