#99 IMDB engine does not fetch production year

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

I figured out that using the most recent imdb engine version from cvs no information about the production year is fetched. This is because the link url of the year has recently changed, so the current regex does not work anymore. But it's easy to fix.
In /engines/mdb.php, replace line 153
preg_match('/<A HREF="\/Sections\/Years\/[1-2][0-9][0-9][0-9]\/?">([1-2][0-9][0-9][0-9])<\/A>/i', $resp['data'], $ary);
with this line
preg_match('/<A HREF="\/year\/[1-2][0-9][0-9][0-9]\/?">([1-2][0-9][0-9][0-9])<\/A>/i', $resp['data'], $ary);
to make it work again.

Discussion

  • Andreas Goetz

    Andreas Goetz - 2010-03-26

    Fixed in CVS. Thanks for the hint!

     
  • Andreas Goetz

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

Log in to post a comment.