Page 1 of 1

imdb.com large pics no longer working

Posted: 2002-12-17 22:06:11
by lboregard
it seems imdb changed the code of its pages again, and now amc doesn't retrieve any images at all.

are you aware of this issue and do you think it could be fixed ?

Posted: 2002-12-17 22:25:28
by antp
It seems that they have changed the name of the server where images are stored.
So locate the following lines :

Code: Select all

  LineNr := FindLine('<img alt="cover" align="left" src="http://posters.imdb.com/', Page, 0);
  if LineNr < 0 then
    LineNr := FindLine('<img alt="cover" align="left" src="http://images.amazon.com/', Page, 0);
  if LineNr > -1 then
  begin
And modify them to get that :

Code: Select all

  LineNr := FindLine('<img alt="cover" align="left" src="http://ia.imdb.com/media/imdb/', Page, 0);
  if LineNr < 0 then
    LineNr := FindLine('<img alt="cover" align="left" src="http://posters.imdb.com/', Page, 0);
  if LineNr < 0 then
    LineNr := FindLine('<img alt="cover" align="left" src="http://images.amazon.com/', Page, 0);
  if LineNr > -1 then
  begin
(I am not sure that it is useful to keep the alternate addresses)

Unfortunately it seems that it will no longer be possible to get the larger image :( (it was possible when the picture was from amazon.com)

imdb.com large pics no longer working

Posted: 2002-12-17 23:11:31
by lboregard
antp

i think i have a fix for the script to get the large pic. but it doesn't work for one special case and i'm kind of stuck ... how can i debug a script ?

Posted: 2002-12-18 09:03:13
by antp
Unfortunately it is not yet possible to run a script step-by-step and debug it.
I'll see if I can add that easily.