I agree and sent it to him back in February 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> <<a href="mailto:david.whyte@gmail.com">david.whyte@gmail.com</a>> 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 <<a href="mailto:neilson.paul@gmail.com">neilson.paul@gmail.com</a>> wrote:<br>><br>> The problem is with the way find_channel matches the channel heading. For<br>> channels like W it will also match any other channel that starts with a W
<br>> (e.g. The Weather Channel). Also, currently if no channel is found then it<br>> will return the last channel, which for me is 'W'<br>><br>> In the latest version 060617 of Michael's tv_grab_au the function is at line
<br>> 439. Here is my suggested change which has worked fine for me since<br>> January.<br>><br>><br>> 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>> }<br>><br>> #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>> #}
<br>><br><br>Just sending the fix directly to Michael, since he has been doing some<br>updates of late. 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>