[mythtv-users] tv_grab_au - W Channel
Paul Neilson
neilson.paul at gmail.com
Sat Jun 17 06:08:54 UTC 2006
The problem is with the way find_channel matches the channel heading. For
channels like W it will also match any other channel that starts with a W (
e.g. The Weather Channel). Also, currently if no channel is found then it
will return the last channel, which for me is 'W'
In the latest version 060617 of Michael's tv_grab_au the function is at line
439. Here is my suggested change which has worked fine for me since
January.
sub find_channel {
my $chan_heading my $channel;
for (sort { length($b) <=> length($a) } keys %chanid) {
if ( index(lc $chan_heading, lc $_) = 0 )
{
$channel last;
}
}
return $channel;
}
#sub find_channel {
# my $chan_heading # my $channel;
# for (sort { length($b) <=> length($a) } keys %chanid) {
# $channel # }
# return $channel;
#}
Paul
On 16/06/06, Dave Oxley <dave at daveoxley.co.uk > wrote:
>
> I've been getting this issue for a long time. I haven't had the chance
> to dig into yet though.
>
> Dave.
>
> Martin Ravell wrote:
> >
> > Has anyone noticed problems with 1.53 of tv_grab_au and the 'W'
> > Channel on Foxteldigital in Sydney?
> >
> > I'm getting what looks like one or more other channels mixed in with
> > the W channel stuff. The content showing up in guide.xml does not seem
> > to be from any other channel I have selected. It looks like one of the
> > movie channels I don't get and maybe some others.
> >
> > I've only just recently changed over to foxteldigital (when I upgraded
> > my analogue set top box) so I don't know if it is a version specific
> > issue.
> >
> > Anyone else experience this problem?
> >
> > Regards
> >
> > Marty
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
> --
> Dave
> * dave at daveoxley.co.uk
> * --
> The box said for Windows 2000 or better but it wouldn't work on my Amiga.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060617/a56f85d7/attachment.html
More information about the mythtv-users
mailing list