Page 1 of 1

import all data using the actual imdb URL?

Posted: 2003-04-25 15:19:46
by KnightRid
Hi, I was wondering if there is a way to do a batch update to an entire list of movies using the IMDB URL field rather than the name?

I have a CSV file that includes the name, video format, # of discs, and imdb url. I can import it no problem, but i cant seem to find anything that will use the url to grab the pic ( best quality possible, amazon? ) and the other fields.

I would appreciate it if someone could tell me then ame of the template that would do this, or a description on how I could try and edit the imdb batch import to do this - PLEASE respond in NON-PROGRAMMING terms :) I am not even close to being able to program :cry:


VERY nice program also!! As long as I can do this batch update like I want - I will be VERY happy!!!!!!!

Thank You

Posted: 2003-04-25 15:54:43
by antp
It is actually easy to do.
e.g. with the "IMDB (batch)" script :
At the end of the script, you find this block:

Code: Select all

begin
  if CheckVersion(3,4,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)+'&restrict=Movies+only');
      AnalyzePage('http://us.imdb.com/Tsearch?title='+UrlEncode(MovieName));
    end;
  end else
    ShowMessage('This script requires a newer version of Ant Movie Catalog (at least the version 3.4.0)');
end.
(or something that is very similar)
Replace it with this :

Code: Select all

begin
  if CheckVersion(3,4,0) then
  begin
    AnalyzePage(GetField(fieldURL));
  end else
    ShowMessage('This script requires a newer version of Ant Movie Catalog (at least the version 3.4.0)');
end.
It should work.
Just select several movies then go to Tools -> Scripting to apply the script to these movies.

Posted: 2003-04-25 17:02:08
by KnightRid
oh you rule!!! THANK YOU!!

Knight Rider

Posted: 2003-04-28 23:26:20
by Guest
ok, great, now how about checking for url first, then, if not found, it checks the name?

Posted: 2003-04-29 10:12:13
by antp
you mean if url is empty ?

Code: Select all

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.