imdb.com large pics no longer working

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
lboregard

imdb.com large pics no longer working

Post 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 ?
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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)
lboregard

imdb.com large pics no longer working

Post 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 ?
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
Post Reply