[mythtv-users] Possible fix for tv_grab_au 2.11

Michael Weinbergs - Network Administrator Michael.Weinbergs at wridgways.com.au
Wed Jul 12 02:36:11 UTC 2006


You are all gods!

Works perfectly!
Thanks. 


__________________________
Mike

-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of andrewc
Sent: Wednesday, 12 July 2006 4:53 AM
To: mythtv-users at mythtv.org
Subject: [mythtv-users] Possible fix for tv_grab_au 2.11

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
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
#####################################################################################

#####################################################################################
The information contained in this email communication may be confidential.
You should only read, disclose, re-transmit, copy, distribute, act in reliance
on or commercialise the information if you are authorised to do so. If you are not
the intended recipient of this email communication, please notify us immediately by
email to administrator at wridgways.com.au or reply by email direct to the sender and 
then destroy any electronic or paper copy of this message. Any views expressed in 
this email communication are those of the individual sender, except where the sender 
specifically states them to be the views of Wridgways The Removalists.  Any personal 
information in this email must be handled in accordance with the Privacy Act 1988 
(Cth). Wridgways The Removalists does not represent, warrant or guarantee that the 
integrity of this communication has been maintained nor that the communication is 
free of errors, virus or interference.
#####################################################################################


More information about the mythtv-users mailing list