[SimBot-commits] CVS: simbot/plugins google.pl,1.22,1.23
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2008-05-24 09:02:27
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12723 Modified Files: google.pl Log Message: Remind me to rewrite this sooner, rather than later. This is getting rediculous. Index: google.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/google.pl,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -p -r1.22 -r1.23 --- google.pl 29 Apr 2008 06:21:07 -0000 1.22 +++ google.pl 24 May 2008 09:02:22 -0000 1.23 @@ -59,7 +59,7 @@ sub google_find { } elsif (!$response->is_error) { # Let's use the calculator! if ($response->content =~ m|/images/calc_img\.gif|) { - $response->content =~ m|<td nowrap><h2 class=r><font size=\+1><b>(.*?)</b></h2></td>|; + $response->content =~ m|<font size=\+1><b>(.*?)</b>|; # We can't just take $1 because it might have HTML in it my $result = $1; $result =~ s|<sup>(.*?)</sup>|^$1|g; |