Ticket #5633: imdb.pl.patchv3

File imdb.pl.patchv3, 630 bytes (added by Ash Bostock <abostock@…>, 17 years ago)

After further testing this seems to be the best fix

Line 
1Index: imdb.pl
2===================================================================
3--- imdb.pl (revision 17758)
4+++ imdb.pl (working copy)
5@@ -279,11 +279,8 @@
6
7 # look for references to impawards.com posters - they are high quality
8 my $site = "http://www.impawards.com";
9- my $impsite = parseBetween($response, "<a href=\"".$site, "\">".$site);
10+ my $impsite = parseBetween($response, "<a href=\"".$site, "\">");
11
12- # jersey girl fix
13- $impsite = parseBetween($response, "<a href=\"http://impawards.com","\">http://impawards.com") if ($impsite eq "");
14-
15 if ($impsite) {
16 $impsite = $site . $impsite;
17