Here is a modified IMDB batch import script i made to fit my taste. Mayme there is something in it for you too
There are several modifications:
* imports multiple categories
* uses the URL field to find the movies (if present)
* always imports the short description. Even if concise, it often catches best the substance of the movie. A longer description is appedded after the short one.
* Import exact imdb ratings and number of votes. It displays them in the comments field with a 'visual' bar. The scale for the votes bar is logarithmic (ranges from 30 to 80000). It is now easy to search for movies based on the number of votes. Just search for something like 'Votes [:::::::::::::::::::::::::::' in the Comments. See the pic to see how i mean.
I used it with the sample database of amc (also made a new db with only the movie names) and here are the problems I encountered with your improvements...
- Evolution: No imdb ratings and number of votes imported, only comments
- Taxi: No Description imported
I'm sure the above can help you find the source of the problem and fix it
...
I would also consider Enabling the ImportURL flag at the beggining as default. It is always helpfull to know from where you got the info you imported...
I'll also try it on my actual database and list the problems I encounter
hmm, it seems that the " * uses the URL field to find the movies (if present) " routine doesn't work
movie "Evolution" that I mentioned above returns the first found (X-Men Evolution TV Series) That is actually not a problem but when I tried to fix it by replacing the URL I figured out that the direct URL import didn't work.
here is a working version of the routine (place at the and of the .ifs file replacing the existing one)
begin
if CheckVersion(3,4,0) then
begin
if pos(GetField(FieldURL),'imdb.com') > 0 then
begin
MovieName := GetField(fieldOriginalTitle);
if MovieName = '' then
MovieName := GetField(fieldTranslatedTitle);
if MovieName = '' then
MovieName := Input('IMDb Import', 'Enter the title of the movie:', MovieName);
if MovieName <> '' then
begin
AnalyzePage('http://us.imdb.com/Tsearch?title='+UrlEncode(MovieName));
end;
end
else
begin
AnalyzePage(GetField(fieldURL));
end;
end else
ShowMessage('This script requires a newer version of Ant Movie Catalog (at least the version 3.4.0)');
end.
begin
if CheckVersion(3,4,0) then
begin
if GetField(fieldURL) = '' then
begin
MovieName := GetField(fieldOriginalTitle);
if MovieName = '' then
MovieName := GetField(fieldTranslatedTitle);
if MovieName = '' then
MovieName := Input('IMDb Import', 'Enter the title of the movie:', MovieName);
if MovieName <> '' then
begin
AnalyzePage('http://us.imdb.com/Tsearch?title='+UrlEncode(MovieName));
end;
end
else
begin
AnalyzePage(GetField(fieldURL));
end;
end else
ShowMessage('This script requires a newer version of Ant Movie Catalog (at least the version 3.4.0)');
end.
the previous also worked, but only because pos(GetField(FieldURL),'imdb.com') always returned 0 (zero).
but it was missleading...
This code only works if the URL is empty or correctly entered. otherwise it returns a page not found error...
Sorry for that. I also put
ImportURL = True;
by default. You can download the upadted version at the original link.
The script can find the movies based on the title field, but i don't reccomend that. Better run an interactive script on the movies before to fill in the url field, import pics and such.
My script is automated so it won't ask for imput if there are multiple choices. But if the url is there, then should be no problems with it. (this time i hope)
i mostly get read timeout errors. first i think my slow connection may cause it. but the original batch script worked fine. anyway i like the script much...
I corrected the IMDB scripts in last update.
If you use another script you have to update it yourself on the basis of the "official" scripts, because I really do not have time to update all the variants of the scripts