IMDB script
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?
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?
-
- Posts: 58
- Joined: 2006-12-08 18:19:18
- Location: The Land Down Under
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.
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.
-
- Posts: 58
- Joined: 2006-12-08 18:19:18
- Location: The Land Down Under
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
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
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
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
-
- Posts: 58
- Joined: 2006-12-08 18:19:18
- Location: The Land Down Under
@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
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
-
- Posts: 58
- Joined: 2006-12-08 18:19:18
- Location: The Land Down Under
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:
between:
and
This works if added into the latest official IMDB script or into the amended script I posted above.
Cheers........Thermal
Insert these lines:
Code: Select all
if Value = '' then
Value := TextBetween(PageText2, 'Amazon.com Essentials:', '<div align="center"> <!--');
Code: Select all
Value := TextBetween(PageText2, 'Amazon.com video review:', '<div align="center"> <!--');
Code: Select all
Value2 := TextBetween(PageText2, '<title>', '</title>');
Cheers........Thermal
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.
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.
Fixed.kazgor wrote:is anyone having problems getting the Actors list now? i tried all the different formats you can format the result in.
Added.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.
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.
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.
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.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.
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)
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 againbad4u 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)
going to do a big batch now incase it breaks again
cheers
Kaz
first of all, bad4u thank you very much for the updated script!
...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?
...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?