IMDB changed a bit

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.
Hellspawn
Posts: 2
Joined: 2003-08-29 16:53:48

IMDB changed a bit

Post by Hellspawn »

*** edit by antp ***
Scripts update: http://www.antp.be/temp/IMDBScripts.zip
*****************



2 bugs due to change from IMDB

URL: http://imdb.com/Title|| ||<ht

Description: ... <a href="plotsummary">(more)</a> <a href="trailers">(view trailer)</a


URL: the number is not extracted correctly, instead there are 4 bold pipe symbols

Description: description id complete but there is something too much included, see above


I dont have the time the edit the script, can somebody do this please

thx
Citanul

Post by Citanul »

I solved the url but haven't looked into the problem of the description yet...

In the script editor search for the line

Code: Select all

SetField(fieldURL, 'http://imdb.com/Title' + copy(Page.Text, pos('href="/Title?',Page.Text)+12, 8));
and replace it with

Code: Select all

SetField(fieldURL, 'http://imdb.com/title/tt' + copy(Page.Text, pos('href="/title/tt',Page.Text)+15, 8));
zenmester!!!

problem not fixed !

Post by zenmester!!! »

I just tried it and it didn't fix the problem
Guest

Post by Guest »

Thx. The URL works now :).
TrOn

Post by TrOn »

To fix Description for IMDB (US) import go to the Description section of the script and find the line:

Code: Select all

EndPos := pos('<a href="/Plot?', Line);
Replace with:

Code: Select all

EndPos := pos('<a href="plotsummary">', Line);
I've tested it on some films and it works ok. The function pos returns the position of the first char of the string which marks the end of the description.
TrOn

Post by TrOn »

Oh, this fix only works for the small description, not for the long description.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Here are the 4 IMDB scripts with corrections (including long descriptions) :
http://www.antp.be/temp/IMDBScripts.zip

Unless somebody find movies that have problems with them, I'll include them with the program this afternoon.
TrOn

Post by TrOn »

IMDB

seems ok

IMDB (pic)

seems ok

IMDB (large pic)

Script error: IMDB at position 17602 (error in statement) while searching for the film Finding Nemo
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

corrected, thanks
There was a misplaced "0" on the front of the next line, I wonder what it was doing there
zenmester
Posts: 2
Joined: 2003-08-29 10:22:19

error in bacth script

Post by zenmester »

the batch script is flawed, when i run it it gives me the following error message:
script error in IMDB postion 4920 (unknown identifier : USELONGDESCRIPTION)

i'm hoping that a fix is on the way or easy to corect as i have 857+ movies to download info on.
TrOn

Post by TrOn »

Movie: For da Love of Money

IMDB

Script error: IMDB at position 3269 (variable expected)

IMDB (pic)

Script error: IMDB at position 3288 (variable expected)

IMDB (parge pic)

Script error: IMDB at position 5175 (variable expected)
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

thanks for the info.
Scripts updated.
KaBeCi
Posts: 23
Joined: 2003-08-29 15:28:19

Post by KaBeCi »

IMDB Large picture imports the small picture.
I've only tried with this movies and i got small pictures from all
Movies:
Se7en
Fight Club
Monty Python's The Meaning of Life
Taxi Driver
Un Oso Rojo (no pic avaiable)

I've also changed GetLargePicture to True on IMDB Batch, and it imported the small pictures too, except with Un Oso Rojo that i'm getting this error:
Script Error: IMDB at position 15309 (unknown identifier: FINDVALUE)
i think it has something to do with the large picture because it happens only when GetLargePicture is set to True.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Ok, updated.

For the large pictures that are not found, it is a known problem. Some movie work, some don't. Usually those that do not work are the ones with special symbols (":", "-"), strange titles ("seven"/"se7en") or that start by "the" and other similar words that are placed at the end on IMDB.
Unfortunately, it is quite difficult to make a link between IMDB and Amazon.
Some day I'll try to rewrite this part of the script, but it is not really funny :D
Daffyrinzwind

Post by Daffyrinzwind »

Are the scripts up to date? I downloaded the scripts on this page, but still I get the "404 not found" error. I've tried this with Spiderman, Highlander: Endgame en lots of other movies. Or should I just download the full version again.

Greetz Daffyrinzwind
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

if you have Ant Movie Catalog 3.4.2 you just have to download the .zip file at the top of this page, and put the four .IFS files over the other ones, in the Scripts folder (check the dates of the file to be sure that they have been overwritten).
Which one of the four IMDB scripts gives you a 404 error ?
Guest

Post by Guest »

Yep, it's the 3.4.2 version I have.
I'm quit new to the program, so it's possible that I made a wrong setting or some sort.
I used the IMDB (pic).ifs along with these settings.
Server : pac.pandora.be Port : 8080
And then my userid and password of course.
I reviewed the code and it seems he only puts :
http://imdb.com/title/tt and then no number of movie.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

pac.pandora.be is not a proxy server, it is only a web server that sends to IE a proxy configuration script.
You should use proxy.telenet.be on port 8080
Daffyrinzwind

Post by Daffyrinzwind »

Thanx. All works fine now.
Greetz Daffyrinzwind
KaBeCi
Posts: 23
Joined: 2003-08-29 15:28:19

Post by KaBeCi »

IMDB BATCH doesnt get the large picture.
i've changed this line
ImportLargePicture = False;
to this one
ImportLargePicture = True;

and stills doesnt get the largeure, it always retreive the small picture.
why??
IMDB (large pic) get the large pic OK!! but IMDB (batch) doesnt!
Post Reply