[mythtv-users] Possible fix for tv_grab_au 2.11

Kevin Hayes wondecla at tpg.com.au
Tue Jul 11 22:51:55 UTC 2006


On Wed, 12 Jul 2006 04:52:33 +1000
andrewc <m.acediac1 at spamgourmet.com> wrote:

> Here's a possible fix for the latest tv_grab_au (immir version) problem.
> 
> 
> $ diff /usr/bin/tv_grab_au tv_grab_au.immir.2.11
> 391,392c391,392
> < my ($pid) = $html =~ /pid=(\w+)/;
> < next if $pid eq ''; # sometimes null programs at bottom of table
> ---
> > my ($pid) = $html =~ /pid=(\d+)/;
> > next if $pid == 0; # sometimes null programs at bottom of table
> 410,412c410
> < #my $cache_id = "$xmldate:$chanid:$pid:$row:$rowspan:$title";
> < # Don't use pid as cache id any more
> < my $cache_id = "$xmldate:$chanid:$row:$rowspan:$title";
> ---
> > my $cache_id = "$xmldate:$chanid:$pid:$row:$rowspan:$title";
> 
> 
> 
> Basically the pid is no longer a number but is hashed and seems to
> have a time component in it because it changes all the time. Luckily
> we don't seem to need it for the cache key to be unique... I think....
> 
> Anyway, this works for me with my free-to-air channels (I don't have
> other services, so can't test). Use at your own risk.
> 
> Andrew
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 
> 

Works for me too, also on fta, 
many thanks,

-- 
Kevin Hayes



More information about the mythtv-users mailing list