#102 VideoDB does not fetch Actor Thumbnails

engines (42)

I've updated my version as of today from CVS trying to fix problem. My VideoDB install does not show any Actor Thumbnails in Cast, when selecting on thumbnail I get this:
http://www.imdb.com/name/nm0000168/"%20onclick="(new%20Image()).src='/rg/castlist/position-3/images/b.gif?link=/name/nm0000168/';/ Fetch time: 1s
Error: Server returned wrong status.
HTTP/1.1 404 Not Found
Date: Wed, 04 Aug 2010 10:06:05 GMT
Server: Server
Cache-Control: private
Content-Type: text/html
Is this feature working for anyone. I'm willing to actively participate, any files, logs, tests anything I can do to fix this. I've tried finding what's the problem myself, but I cannot make heads and tails of whole thumbnail fetching mechanics.

Please help.
Thank you


  • Ulnagar

    Ulnagar - 2010-09-04

    I have managed to resolve this. It is due to the parser not removing code from the IMDB page it looks up for the movie.

    The file /engines/imdb.php at line 217 should read:

    if (preg_match_all('#<td class="nm"><a href="/name/(.*?)/" onclick.*?/?">(.*?)</a>.*?<td class="char">(.*?)</td>#si', $allcast, $ary, PREG_PATTERN_ORDER))

    Currently it reads:

    if (preg_match_all('#<td class="nm"><a href="/name/(.*?)/?">(.*?)</a>.*?<td class="char">(.*?)</td>#si', $allcast, $ary, PREG_PATTERN_ORDER))

    I don't know how to use cvs or similar tools so I can't update the source, but this is an easy fix to make.

    You will have to remove the data in the Cast box for each show, select the Data Lookup: Add Missing option at the bottom and save the entry again for the update to take effect on all currently entered shows. There will also be a period where the server does not try to check for an image due to caching, but you should start to see actor photos appearing.

    Let me know if you have any trouble fixing this.

  • roland obermayer

    fixed in cvs

  • roland obermayer

    • status: open --> closed-fixed

Log in to post a comment.