#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!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks