Ticket #3671: patch_userrating.txt

File patch_userrating.txt, 447 bytes (added by aprotim@…, 13 years ago)
Line 
1--- imdb.pl.orig        2007-06-10 15:45:06.000000000 -0400
2+++ imdb.pl     2007-06-27 03:19:17.000000000 -0400
3@@ -171,8 +172,8 @@
4    }
5 
6    # parse user rating
7-   my $userrating = parseBetween($response, ">User Rating:</b>", "> (");
8-   $userrating = parseBetween($userrating, "<b>", "/");
9+   my $userrating = parseBetween($response, ">User Rating:</b>", "/10");
10+   $userrating =~ s/^\s*<b>//;
11 
12    # parse MPAA rating
13    my $ratingcountry = "USA";