#112 IMDB does not fetch Director - Nationality

closed-fixed
nobody
engines (42)
5
2011-08-15
2011-08-08
Luis LLagostera
No

When I Try to add a new entry from imdb , the director section, nationality, and duration are empty.

Discussion

    • summary: IMDB does not fetch Director - Nacionality --> IMDB does not fetch Director - Nationality
     
  •  pmallot
    pmallot
    2011-08-15

    the following changes to /engines/imdb.php work for me:

    line 189 (Runtime):
    preg_match('/Runtime:?<\/h4>.*?>(\d+)\s+min/si', $resp['data'], $ary);

    line 194 (Directors):
    preg_match_all('/<A +HREF="\/Name[?\/].+?"\s*?>(.+?)<\/A>/si', $ary[1], $ary, PREG_PATTERN_ORDER);

    line 204 (Countries):
    preg_match_all('/<A HREF="\/Country\/.+?"\s*?>(.+?)<\/A>/si', $ary[1], $ary, PREG_PATTERN_ORDER);

     
  • thanks pmallot
    committed to cvs

     
    • status: open --> closed-fixed