IMDB (Batch) & Translated Title Problem

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
TheQwerty
Posts: 1
Joined: 2003-08-08 15:58:08

IMDB (Batch) & Translated Title Problem

Post by TheQwerty »

I just updated my version to 3.4.2 and decided to update everything with the IMDB batch script, and using it to import the large pictures from Amazon. Also I have it importing the original and translated titles, but does not leave the original title. When I run the script on regular movies it seems to work fine, however on foreign titles I get the following error:
"Script error: IMDB at position 15723 (unknown identifier: FINDVALUE)"

It seems to have a problem with this segment of code and in particular the line of code marked HERE:

Code: Select all

  if ImportLargePicture then
  begin
    // Find Alternate Titles for Movies which are not in English
    Aka := '';
    if Language <> 'English' Then
    begin
      LineNr:= FindLine('Also Known As',Page,0);
      EndPos:=0;
      if LineNr > -1 then
      begin
        Line := Page.GetString(LineNr);
        repeat
          Aka:= FindValue('<br>','<br>',Page,LineNr,Line); //****HERE
          if Aka <> '' then
          begin
            BeginPos:=1;
            EndPos:=Pos('(',Line);
            if EndPos = 0 then
              EndPos := Length(Aka);
            Value := copy(Aka, BeginPos, EndPos - BeginPos - 1);
            Value:=TransFormIMDBTitle(Value);
            AllTitles.Add(Value);
          end;
        until (Pos('Runtime',Line) > 0) or (Pos('MPAA',Line) > 0 );
      end;
    end;
I'm not sure what exactly is wrong, so any help is appreciated. My thoughts are that FindValue isn't a valid function (it's the only time it is used in this script), but I don't know.

UPDATE: I just found another error, it doesn't seem to be getting the large pictures at all.

Other than that I must say I've been using this program for about a year and it is the best. I can't wait to see this future version.

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

Post by antp »

Strange, but that's not me that made this I think.
I'll have to correct it next week, when I'll have few time.
trekkie
Posts: 25
Joined: 2003-01-24 11:32:56

Post by trekkie »

this is very strange
this function was added by me to the latest IMDB large picture script
( NOT the batch script)

open the script with an editor and search for that function:

function FindValue(...)

it its not there .. re-download the whole amc_scripts.zip file
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

trekkie wrote: this function was added by me to the latest IMDB large picture script
( NOT the batch script)
I think I updated the batch script with the picture script's code, I guess I forgot a part
Post Reply