[mythtv-users] [jerry@matilda.com: [xmltv-users] Re: zap2it format change]

Jim Paris jim at jtan.com
Tue Nov 18 22:23:14 EST 2003


Pardon the forward, but hopefully this will tame the recent
spike in "XMLTV IS B0RKED!@" postings.

-jim

----- Forwarded message from Jerry Veldhuis <jerry at matilda.com> -----

From: Jerry Veldhuis <jerry at matilda.com>
To: Martins D Innus <minnus at eng.buffalo.edu>, CC Rider <ccriderm at yahoo.com>
cc: xmltv-devel at lists.sourceforge.net, xmltv-users at lists.sourceforge.net
Date: Tue, 18 Nov 2003 19:44:26 -0700
Subject: [Xmltv-users] Re: [Xmltv-devel] zap2it format change?


Thank you CC and Martins for quickly noticing that zap2it changed
their site today.

The following modifications to the ZapListings.pm (rcs ver 1.72)
package are required. Your other option is to update ZapListings.pm
manually from cvs to revision 1.73.

***************
*** 876,883 ****
  while ( $content=~s/<SELECT(.*)(?=<\/SELECT>)//ios ) {
      my $options=$1;
!      while ( $options=~s/<OPTION value="(\d+)"\s*>([^<]+)<\/OPTION>//ios 
) {
        my $p;
        $p->{id}=$1;
!        $p->{description}=massageText($2);
--- 876,883 ----
  while ( $content=~s/<SELECT(.*)(?=<\/SELECT>)//ios ) {
      my $options=$1;
!      while ( $options=~s/<OPTION value="(\d+)">([^<]+)<\/OPTION>//ios ) {
        my $p;
        $p->{id}=$1;
!        $p->{description}=$2;

Thanks Martins for locating the first fix. I added the massageText() call
because zap2it is also (occasionally) adding '&nbsp;' entries to the end of 
some
provider descriptions.

jerry



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Xmltv-users mailing list
Xmltv-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltv-users

----- End forwarded message -----


More information about the mythtv-users mailing list