<div>The problem is with the way find_channel matches the channel heading.&nbsp;For channels like W&nbsp; it will also match any other channel that starts with a W (e.g. The Weather Channel).&nbsp; Also,&nbsp; currently if no channel is found then it will return the last channel,&nbsp; which for me is 'W' 
</div>
<div>&nbsp;</div>
<div>In the latest version 060617 of Michael's tv_grab_au the function is at line 439.&nbsp; Here is my suggested change which has worked fine for me since</div>
<div>January.&nbsp;</div>
<div>
<p>sub find_channel {<br>&nbsp; my $chan_heading = shift;<br>&nbsp; my $channel;<br>&nbsp; for (sort { length($b) &lt;=&gt; length($a) } keys %chanid) {<br>&nbsp;&nbsp;&nbsp; if ( index(lc $chan_heading, lc $_) == 0 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;$channel = $_;<br>&nbsp;last; 
<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; }<br>&nbsp; return $channel;<br>}</p>
<p>#sub find_channel {<br>#&nbsp; my $chan_heading = shift;<br>#&nbsp; my $channel;<br>#&nbsp; for (sort { length($b) &lt;=&gt; length($a) } keys %chanid) {<br>#&nbsp;&nbsp;&nbsp; $channel = $_, last if index(lc $chan_heading, lc $_) &gt;= 0;<br>#&nbsp; } 
<br>#&nbsp; return $channel; <br>#}</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Paul</p></div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 16/06/06, <b class="gmail_sendername">Dave Oxley</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dave@daveoxley.co.uk" target="_blank">dave@daveoxley.co.uk 
</a>&gt; 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>&gt;<br>&gt; Has anyone noticed problems with 1.53 of tv_grab_au and the 'W'<br>&gt; Channel on Foxteldigital in Sydney?<br>&gt;<br>&gt; I'm getting what looks like one or more other channels mixed in with 
<br>&gt; the W channel stuff. The content showing up in guide.xml does not seem<br>&gt; to be from any other channel I have selected. It looks like one of the<br>&gt; movie channels I don't get and maybe some others.<br>&gt; 
<br>&gt; I've only just recently changed over to foxteldigital (when I upgraded<br>&gt; my analogue set top box) so I don't know if it is a version specific<br>&gt; issue.<br>&gt;<br>&gt; Anyone else experience this problem? 
<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt; Marty<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list 
<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>&gt; <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>&gt;<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>