[mythtv-users] Possible fix for tv_grab_au 2.11

andrewc m.acediac1 at spamgourmet.com
Tue Jul 11 18:52:33 UTC 2006


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


More information about the mythtv-users mailing list