IMDB script

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
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

A new version (3.54) will be available from http://update.antp.be/amc/scripts/ or using script "Update Scripts" soon.

It'll try to fetch data from both HTML code versions that IMDB used last week, though I'm not sure it'll catch all changes for second version (obviously this can't be tested currently).
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

haggis82 wrote:
bad4u wrote:For movies that have been saved with correct URL, you can simply run IMDB in batch mode later and it will update all missing/wrong fields without user interaction for these movies. No need to do that manually then ;)
How do I do that? :)
Besides the other script options that observer explained, you should set "Show results window" from "Execution options" temporary disabled, if you have to process a lot of movies. This way script execution will not pause after each movie.
HyperX
Posts: 3
Joined: 2009-11-10 09:30:57

imdb error

Post by HyperX »

Hy!

I tried to use this IMDB script, but I became the following message...

Click here to watch the image.

Script cersion 3.5.4
AMC version: 3.5.1
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Re: imdb error

Post by bad4u »

HyperX wrote:Hy!

I tried to use this IMDB script, but I became the following message...

Click here to watch the image.

Script cersion 3.5.4
AMC version: 3.5.1
This means you have no StringUtils1.pas file in your scripts folder, as IMDB script needs latest version of this file. Did you delete that file for any reason or did IMDB script work previously (then I might have made any mistake on updating this file automatically) ?

You can download the file from http://update.antp.be/amc/scripts/StringUtils1.pas (rightclick and "save file as") or use script [ Update_Scripts ] from within AMC.
HyperX
Posts: 3
Joined: 2009-11-10 09:30:57

Post by HyperX »

Thank you for your patience, and your help!
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

the_observer wrote:I am sad to say that Picture is no more coming.(Even if i set the option to 4 or 5).

Also MPAA Rating is not coming

:cry:
Picture import works for me with all options. If it is on specific movies only, please give an example.

About MPAA rating - I forgot to include that in the changes I did for supporting both HTML code versions. New version will be available from servers soon.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

... you shouldn't delete posts while someone else might be answering ...
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I guess that in the meantime he found where was the error :D
Quick
Posts: 2
Joined: 2009-11-26 19:41:10

Post by Quick »

Hello, i get a script error too!


http://img697.imageshack.us/img697/2996/16945746.png

I do have stringutils1 in the script folder! I also uninstalled and reinstalled. I also tried to download a new stringutils and copy paste it in the folder.

Win Seven 64.

What should i do?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Quick wrote:Hello, i get a script error too!


http://img697.imageshack.us/img697/2996/16945746.png

I do have stringutils1 in the script folder! I also uninstalled and reinstalled. I also tried to download a new stringutils and copy paste it in the folder.

Win Seven 64.

What should i do?
That's weird. Do you use UAC (User Account Control) on Win 7 ? Then have a look on the Virtual Store folder, where Vista and Win 7 store downloaded files instead of saving these to program's folder. For Vista it should be found at \user\AppData\Local\VirtualStore , not sure if it's the same for Win 7.

@antp: Are there problems reported for allocine, too (as it uses the same update routine) ?
Quick
Posts: 2
Joined: 2009-11-26 19:41:10

Post by Quick »

You are right! I do use UAC (Win7x64) and there is a folder in Virtual Store containing the script and stringutils!

Thanks!
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

bad4u wrote: @antp: Are there problems reported for allocine, too (as it uses the same update routine) ?
No, and it should work in the same way as "update scripts" script anyway.
the_observer
Posts: 62
Joined: 2009-11-12 05:53:14

Post by the_observer »

bad4u wrote:... you shouldn't delete posts while someone else might be answering ...
I'm terribly sorry bad4u but the script was working good.It was my mistake that i got errors so i thought to delete the post in order not to offer unnecessary confusion as antp correctly guessed.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

No problem at all. It was not meant rude or offensive ;)
Nicolas R
Posts: 21
Joined: 2007-07-28 16:53:13
Location: IDF

Post by Nicolas R »

Hi bad4u, antoine and imdb script users !

Since this morning (it worked yesterday) i cant get the rating field completed with imdb script. Does anyone experience this issue since today ?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Nicolas R wrote:Since this morning (it worked yesterday) i cant get the rating field completed with imdb script. Does anyone experience this issue since today ?
Change script line

Code: Select all

Value := TextBetween(PageText, '<h5>User Rating:</h5>', '<div class="bottom">');
to

Code: Select all

Value := TextBetween(PageText, '<h5>User Rating:</h5>', '</b>');
and it should work again. New script version will be available from server later this day, I guess ;)
Nicolas R
Posts: 21
Joined: 2007-07-28 16:53:13
Location: IDF

Post by Nicolas R »

You rock ! Deleting the div tag made it usable again.

Thanks
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

bad4u wrote:New script version will be available from server later this day, I guess ;)
Good guess :D
(well, it was the next day, but still close)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

e-mail received :
I use imdb script for informations for my movies, and it always run like a clock. I come ones or twise to you site to check for updated version of imdb script, and when i find it, I always replace it with my current. But, I have experience some problems, particulary with comments section. All fields are correctly updates, actors, director, producer, summary, etc. but comment field is left intact, or blank. No information have been pulled from imdb. That field stays without ANY informatio. I uses comment type 1 - detailed type (10 most useful comments from comments page). If I put 0 - standard type (only one comment from comments page) it is SHOWN in your catalog... So, i guess that imdb.com have change something in comments page, which resulted that ant movie catalog with imdb script can't work very well. So, I just wanted to let you know about this problem. I don't know if anyone have reported you about this issue.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

...But, I have experience some problems, particulary with comments section. All fields are correctly updates, actors, director, producer, summary, etc. but comment field is left intact, or blank. No information have been pulled from imdb. That field stays without ANY informatio. I uses comment type 1 - detailed type (10 most useful comments from comments page). If I put 0 - standard type (only one comment from comments page) it is SHOWN in your catalog...
Please replace

Code: Select all

FullValue := TextAfter(FullValue, 'comment useful :-</small><br>');
with

Code: Select all

FullValue := TextAfter(FullValue, 'review useful:</small><br>');
on comments import part (2 times !). ;)
Post Reply