I agree and sent it to him back in February&nbsp;&nbsp; but I guess that it got lost while he continually wrangles with all MSN changes....<br><br>Paul<br><br><br><div><span class="gmail_quote">On 17/06/06, <b class="gmail_sendername">
David Whyte</b> &lt;<a href="mailto:david.whyte@gmail.com">david.whyte@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/17/06, Paul Neilson &lt;<a href="mailto:neilson.paul@gmail.com">neilson.paul@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; The problem is with the way find_channel matches the channel heading. For<br>&gt; channels like W&nbsp;&nbsp;it will also match any other channel that starts with a W
<br>&gt; (e.g. The Weather Channel).&nbsp;&nbsp;Also,&nbsp;&nbsp;currently if no channel is found then it<br>&gt; will return the last channel,&nbsp;&nbsp;which for me is 'W'<br>&gt;<br>&gt; In the latest version 060617 of Michael's tv_grab_au the function is at line
<br>&gt; 439.&nbsp;&nbsp;Here is my suggested change which has worked fine for me since<br>&gt; January.<br>&gt;<br>&gt;<br>&gt; sub find_channel {<br>&gt;&nbsp;&nbsp; my $chan_heading = shift;<br>&gt;&nbsp;&nbsp; my $channel;<br>&gt;&nbsp;&nbsp; for (sort { length($b) &lt;=&gt; length($a) } keys %chanid) {
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if ( index(lc $chan_heading, lc $_) == 0 )<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;$channel = $_;<br>&gt;&nbsp;&nbsp;last;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp; return $channel;<br>&gt; }<br>&gt;<br>&gt; #sub find_channel {<br>&gt; #&nbsp;&nbsp;my $chan_heading = shift;
<br>&gt; #&nbsp;&nbsp;my $channel;<br>&gt; #&nbsp;&nbsp;for (sort { length($b) &lt;=&gt; length($a) } keys %chanid) {<br>&gt; #&nbsp;&nbsp;&nbsp;&nbsp;$channel = $_, last if index(lc $chan_heading, lc $_) &gt;= 0;<br>&gt; #&nbsp;&nbsp;}<br>&gt; #&nbsp;&nbsp;return $channel;<br>&gt; #}
<br>&gt;<br><br>Just sending the fix directly to Michael, since he has been doing some<br>updates of late.&nbsp;&nbsp;I don't use Fox, so I have never been impacted, but<br>it is best to get the patch rolled into the script rather than having
<br>to search out the fix every time.<br><br>Cheers,<br>Whytey<br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>