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.
kinetix
Posts: 32
Joined: 2003-02-23 08:03:44
Location: Sweden

Post by kinetix »

somewhat off-topic, so I apologize for this in advance...

but I just got to say: Damn, that was an old post from me ;-)
clearly I don't post much, but what I post is (obviously) important ;-)
Cosmo
Posts: 5
Joined: 2006-12-04 20:40:23

Post by Cosmo »

is there nobody who can help on my question? :/
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

What kind of reply do you want?
I can say that yes it is technically possible, but unfortunately I haven't done it, and do not have time to do it currently :/
I do not think that such modification of the script was done previously (not since the last change of IMDB).
Cosmo
Posts: 5
Joined: 2006-12-04 20:40:23

Post by Cosmo »

hello,

first of all, thank you for the reply. well you said, nobody did a modification for importing all actors from imdb. but if you look at the thread i posted a link to, you can see a script, which did that job. but unfortunatley it was in 2003. i tried the script with the current version of your program, but it don't works anymore. so i thought, maybe there is someone who could modify that script to work with the current amc?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

That's why I added "(not since the last change of IMDB)"
Since 2003 the IMDB site did changes, and I completely rewrote the script for that. It would be easier to modify existing script to add option of getting all actors than to fix the old script.
Thermal Ions
Posts: 58
Joined: 2006-12-08 18:19:18
Location: The Land Down Under

Post by Thermal Ions »

Hi, I've been doing a bit of playing around with the IMDB script to suit my needs, and realising how rusty I am on scripting. Anyway, thought the script (or ideas from it anyway) might be of use or interest to others.

Download IMDB_Thermal_Ions.ifs

***** Modifications made by Thermal Ions *****
Version Modified: 2.07
Date Modified: 10 December 2006

DescriptionSelection:
Added an additional option to import the short summary as well as the selected summary, with a blank line inserted between them. If batch mode is enabled, then the short summary and the longest summary will both be returned.

AmazonReview:
You now have ability to select whether to append the Amazon Review to the Description field or the Comments field, with a blank line inserted between them. CR/LF has been inserted between the heading "Amazon.com Reviews for..." and the review itself. Script for this data relocated outside the 'Description' field script section.

Classification:
You may choose to import Classification to the MediaType field and/or MPAA text to the end of the Comments field. To import Classification you must set your Country name in the variable Value2 on script line # 540. It must be entered exactly as it appears in the classification section on the main movie pages. Note, that although a country may appear in the classification section multiple times {e.g. Australia:M (TV rating) / Australia:PG}, the script will only return the first occurence.

Changes to avoid/fix Bugs:
Within the procedure "AnalyzeMoviePage" the variable PageText remained unchanged throughout with the exception of during the Trivia and Awards script sections. These two sections changed the content of the variable thus any following script sections within the procedure were not referencing the movie page text, ratehr only a subset. This became apparent when relocating the AmazonReview section and creating the Classification section. To avoid this, an additional variable PageText2 has been created and used in the Trivia and Awards sections to hold the page text subset they require.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks.
So the script still works like the previous one if these new options are disabled? If yes, I could use that version as the "official" one (and I should clean this trivia/award variable problem)
Thermal Ions
Posts: 58
Joined: 2006-12-08 18:19:18
Location: The Land Down Under

Post by Thermal Ions »

Yes, it only adds options to the existing one, doesn't take anything away. The classification bit has an option to NOT download any classification/MPAA data so won't cause a problem for those not using MediaType field in that way.

The Trivia/Award was just a quick fix, so you may want to fix it differently yourself.

Feel free to use the script as you want, and you can remove the multiple comment lines I added to the start - that was as much so I knew what I'd changed as for any other purpose. May need to leave note in about setting the country though.

Cheers...........Thermal
Cosmo
Posts: 5
Joined: 2006-12-04 20:40:23

Post by Cosmo »

Hello Thermal Ions,

Hmmm...i just wanted to ask you very carefully... ;) ...as you seem to have skills in editing the scripts, if you could also add the option i asked for (all actors)?...i urgently need it, cause i have many, many movies in AMC, which actor-infos are wrong. this means for example, that amc doesn't show some of the main-actors (!) of the movie, because on the IMDB page they aren't listed on the main-page but on the details-page...well, don't ask why IMDB doesn't sort the actors for relevance...i mean, the main-actors should be listed on the first page...whatever....i don't wan't to verify like hundreds of movies in AMC if they have the right actors listed and add them manually, so my last hope is someone, who could modify the imdb script to download all actors...

thank you in advance :)
Thermal Ions
Posts: 58
Joined: 2006-12-08 18:19:18
Location: The Land Down Under

Post by Thermal Ions »

@Cosmo,
I'll make no promises on time, but will try to have a look at your request when I get a chance. Understand that it won't be a top priority for me as I'm presently happy enough with what IMDB returns actor wise for me, and I'm frsutratingly trying to personalise a php template atm.

It seems that the actors section of the script is definately more involved than the bits I've played with so far. This is actually the first time I've done any AMC scripting, so it's taking me a while. I'm drawing on my old html and programming knowledge and applying the logic and principles to work out what I needed to change / write.

Cheers..............Thermal
Thermal Ions
Posts: 58
Joined: 2006-12-08 18:19:18
Location: The Land Down Under

Post by Thermal Ions »

Those downloading the Amazon review from IMDB may have noticed that sometimes you only get a heading with no actual review. To overcome this issue, you can insert the following code into the Amazon.com section of the script between the specified lines:

Insert these lines:

Code: Select all

if Value = '' then
   Value := TextBetween(PageText2, 'Amazon.com Essentials:', '<div align="center"> <!--');
between:

Code: Select all

Value := TextBetween(PageText2, 'Amazon.com video review:', '<div align="center"> <!--');
and

Code: Select all

Value2 := TextBetween(PageText2, '<title>', '</title>');
This works if added into the latest official IMDB script or into the amended script I posted above.

Cheers........Thermal
Guest
Posts: 3
Joined: 2005-06-18 23:11:59

Post by Guest »

Please, for the love of God, repair producer field import. At the moment "Writing credits" are imported instead.
HappyTalk
Posts: 19
Joined: 2006-11-02 23:44:37

Post by HappyTalk »

I modified the IMDB script myself last year, dunno if it gets confusing with diff people avin' a go. I ripped out some stuff that didn't make sense and fixed other stuff that didn't work but generally was much the same. I wrote some more powerful text parsing routines too so it's easier to handle akward stuff or modify when the site changes.

Main changes were to grab large pic from amazon.com that was broken, 'batchmode|Only updates using current url field' useful for automated updating of ratings, etc. I'll up it next week when I've re-genericised it.
loopback
Posts: 2
Joined: 2007-02-02 17:17:19

Post by loopback »

Can someone please tell me how to modify the script to get more then 15 actors from IMDB?

Thx in Advance

loop
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

is anyone having problems getting the Actors list now? i tried all the different formats you can format the result in.


:(
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

kazgor wrote:is anyone having problems getting the Actors list now? i tried all the different formats you can format the result in.
Fixed.
loopback wrote:Can someone please tell me how to modify the script to get more then 15 actors from IMDB?
Added.
Guest wrote:Please, for the love of God, repair producer field import. At the moment "Writing credits" are imported instead.
Added.


Besides I added "Audio Format" import from websites' "Sound Mix" field. If you don't like it you can hide it via option "AudioFormat".


download : *****
(this is a temporary address - hit 'GMX MediaCenter starten', choose "IMDB.ifs" - Datei - download)


I just tested 3 films, as I don't need/use this script for myself. Report here if there are more problems that I haven't noticed.

Last but not least : Antoine, please ;)
Last edited by bad4u on 2007-02-06 00:10:31, edited 1 time in total.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Did you test it well, with the different options? As there may be some side-effects due to the fact that you use the "combined" page rather than the normal one.
By the way, I think that this should be an option: by default it is better to use the normal page, as some people may not want a so long actor list, and also because it makes the page much heavier to download.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

antp wrote:Did you test it well, with the different options? As there may be some side-effects due to the fact that you use the "combined" page rather than the normal one.
By the way, I think that this should be an option: by default it is better to use the normal page, as some people may not want a so long actor list, and also because it makes the page much heavier to download.
I used the "combined" page by default, not only because people may want the long actors list, but I wanted to add the informations about the producers - and you will find this info only on the detailed page. As there are no additional pictures on the page (apart from some really small thumbnails for the actors) the download is not that huge and still quite fast.

As the layout of the "combined" page is the same as it is on normal page - only with some more informations added - it should work fine with the other options, but I did not test it in detail - so maybe there could be problems. The 3 films I tested worked fine with options set to standard.

Nevertheless I deleted the script again from my webspace, cause I have no time to do more testing at the moment - maybe I'll find some more time next weekend. But I don't need the script, so it is not of high priority for me ^^


@kazgor : Maybe you are not using the latest version of the script, do you ? The latest version from http://www.antp.be/temp/scripts/ should work (at least here it does)
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

bad4u wrote:@kazgor : Maybe you are not using the latest version of the script, do you ? The latest version from http://www.antp.be/temp/scripts/ should work (at least here it does)
I did do that yesterday and it didn't work so this time i deleted the ones i had then redownloaded per your link and it seemed to be working again :)

going to do a big batch now incase it breaks again :)

cheers

Kaz
Cosmo
Posts: 5
Joined: 2006-12-04 20:40:23

Post by Cosmo »

first of all, bad4u thank you very much for the updated script! :grinking:

...but it seems, if i can't handle it ;)

well, at least i tried to get ALL actors for about 3 movies and with none of them it worked. means: it still only shows the actors from the main page, which were added with the old imdb-script. the additional actors aren't added.

any hints? :/
Post Reply