Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#100 IMDB MPAA rating is not fetched properly

closed-fixed
nobody
engines (42)
5
2010-03-27
2010-03-07
jimbo
No

imdb.php, line 161 ...
preg_match('/<A HREF="\/mpaa">MPAA<\/A>: ?<\/h5>(.+?)<\/div>/is', $resp['data'], $ary);
... matches not only the rating itself, but also the preceding html-code
<div class="info-content"
. To fix it, replace line 161 with the following code
preg_match('/<A HREF="\/mpaa">MPAA<\/A>:<\/h5>.+?<div class="info-content">(.+?)<\/div>/is', $resp['data'], $ary);

Discussion

  • Andreas Goetz
    Andreas Goetz
    2010-03-27

    • status: open --> closed-fixed
     
  • Andreas Goetz
    Andreas Goetz
    2010-03-27

    Fixed in CVS- thank you!