<div>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'
</div>
<div> </div>
<div>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</div>
<div>January. </div>
<div>
<p>sub find_channel {<br> my $chan_heading = shift;<br> my $channel;<br> for (sort { length($b) <=> length($a) } keys %chanid) {<br> if ( index(lc $chan_heading, lc $_) == 0 )<br> {<br> $channel = $_;<br> last;
<br> }<br> }<br> return $channel;<br>}</p>
<p>#sub find_channel {<br># my $chan_heading = shift;<br># my $channel;<br># for (sort { length($b) <=> length($a) } keys %chanid) {<br># $channel = $_, last if index(lc $chan_heading, lc $_) >= 0;<br># }
<br># return $channel; <br>#}</p>
<p> </p>
<p> </p>
<p>Paul</p></div>
<div><br><br> </div>
<div><span class="gmail_quote">On 16/06/06, <b class="gmail_sendername">Dave Oxley</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dave@daveoxley.co.uk" target="_blank">dave@daveoxley.co.uk
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I've been getting this issue for a long time. I haven't had the chance<br>to dig into yet though.<br><br>Dave.
<br><br>Martin Ravell wrote:<br>><br>> Has anyone noticed problems with 1.53 of tv_grab_au and the 'W'<br>> Channel on Foxteldigital in Sydney?<br>><br>> I'm getting what looks like one or more other channels mixed in with
<br>> the W channel stuff. The content showing up in guide.xml does not seem<br>> to be from any other channel I have selected. It looks like one of the<br>> movie channels I don't get and maybe some others.<br>>
<br>> I've only just recently changed over to foxteldigital (when I upgraded<br>> my analogue set top box) so I don't know if it is a version specific<br>> issue.<br>><br>> Anyone else experience this problem?
<br>><br>> Regards<br>><br>> Marty<br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> mythtv-users mailing list
<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>><br><br>--<br>Dave<br>* <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dave@daveoxley.co.uk" target="_blank">dave@daveoxley.co.uk</a>
<br>* --<br>The box said for Windows 2000 or better but it wouldn't work on my Amiga.<br>_______________________________________________<br>mythtv-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">
mythtv-users@mythtv.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>