[mythtv-users] Problems connecting to zap2it?

Ryan A. Carris rac at racarris.com
Tue Aug 12 20:16:57 EDT 2003


Would I be asking too much for a patch that works with XMLTV 0.5.14 for 
those of us who aren't running the CVS version, since .15 doesn't work 
with the latest release.... of course if Mythtv .11 comes out here in 
the next week, this is really a mute issue.

thanks

-rac


Gregorio Gervasio, Jr. wrote:

>>>>>>Dave de Leon Manaloto writes:
> 
> 
> g> Is anyone having problems connecting to zap2it?  I'm running the
> g> latest CVS version of mythtv and XMLTV 0.5.15.  Running setup, I'm
> g> able to grab the provider list, but not the channel list or programs.
> g> I'm getting error 500: Internal Server Error, but I'm able to browse
> g> the listings online.  This has been going on for the past few hours,
> g> so just wondering if anyone else is having problems.  BTW, i'm using
> g> tv_grab_na with Directv.
> 
> 
>         Yes, someone has already filed a bug report on the XMLTV
> mailing lists.
> 
>         For what it's worth, the listings are downloaded even with
> this error, so it seems to work if you hack ZapListings.pm to ignore
> this error for now.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --- xmltv-0.5.15/grab/na/ZapListings.pm.orig	2003-07-06 12:13:03.000000000 -0700
> +++ xmltv-0.5.15/grab/na/ZapListings.pm	2003-08-11 19:47:27.000000000 -0700
> @@ -913,7 +913,7 @@
>      }
>  
>      my $res=&doRequest($self->{ua}, $req, $self->{Debug});
> -    if ( !$res->is_success || $res->content()=~m/your session has timed out/i ) {
> +    if ( !($res->is_success || $res->code eq '500') || $res->content()=~m/your session has timed out/i ) {
>  	# again.
>  	$res=&doRequest($self->{ua}, $req, $self->{Debug});
>  
> @@ -926,7 +926,7 @@
>  	}
>      }
>  
> -    if ( !$res->is_success ) {
> +    if ( !($res->is_success || $res->code eq '500') ) {
>  	main::errorMessage("zap2it failed to give us a page: ".$res->code().":".
>  			 HTTP::Status::status_message($res->code())."\n");
>  	main::errorMessage("check postal/zip code or www site (maybe they're down)\n");
> @@ -955,7 +955,7 @@
>      $req = $self->Form2Request($self->{GridForm});
>  
>      $res=&doRequest($self->{ua}, $req, $self->{Debug});
> -    if ( !$res->is_success || $res->content()=~m/your session has timed out/i ) {
> +    if ( !($res->is_success || $res->code eq '500') || $res->content()=~m/your session has timed out/i ) {
>  	# again.
>  	$res=&doRequest($self->{ua}, $req, $self->{Debug});
>  
> @@ -968,7 +968,7 @@
>  	}
>      }
>  
> -    if ( !$res->is_success ) {
> +    if ( !($res->is_success || $res->code eq '500') ) {
>  	main::errorMessage("zap2it failed to give us a page: ".$res->code().":".
>  			 HTTP::Status::status_message($res->code())."\n");
>  	main::errorMessage("check postal/zip code or www site (maybe they're down)\n");
> @@ -2050,12 +2050,12 @@
>  	# looks like some requests require two identical calls since
>  	# the zap2it server gives us a cookie that works with the second
>  	# attempt after the first fails
> -	if ( !$res->is_success || $res->content()=~m/your session has timed out/i ) {
> +	if ( !($res->is_success || $res->code eq '500') || $res->content()=~m/your session has timed out/i ) {
>  	    # again.
>  	    $res=&doRequest($self->{ua}, $req, $self->{Debug});
>  	}
>  
> -	if ( !$res->is_success ) {
> +	if ( !($res->is_success || $res->code eq '500') ) {
>  	    main::errorMessage("zap2it failed to give us a page: ".$res->code().":".
>  			     HTTP::Status::status_message($res->code())."\n");
>  	    main::errorMessage("check postal/zip code or www site (maybe they're down)\n");
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list