Nuevo script Index-DVD(ES)v1.0

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
legrad
Posts: 109
Joined: 2006-02-11 09:46:06
Location: Lerida-Spain

Nuevo script Index-DVD(ES)v1.0

Post by legrad »

Code: Select all

(***************************************************

Ant Movie Catalog importation script
www.antp.be/software/moviecatalog/

[Infos]
Authors=Legrad
Title=IndexDVD(ES)
Description=
Site=www.index-dvd.com
Language=ES
Version=1.0
Requires=3.5.0
Comments=
License=
GetInfo=1

[Options]

***************************************************)

 program IndexDVD;
var 
  MovieName: string; 
  MovieURL: string; 

//------------------------------------------------------------------------------------
function Comillas(var S: string): string;
var
   n,len, tag: Integer;
   c: char;
   t: String;
begin
   tag := 0;
   t := '';
   len := length(s);
   for n :=1 to len do
   begin
     c := Copy(s,n,1);
     if c = '''' then
        c := ' ';
        t := t + c;
   end
   s := t;
   result := t;
end;
//-------------------------------------------------------------------------------
                              function FindLine(Pattern: string; List: TStringList; StartAt: Integer): Integer; 
var 
  i: Integer; 
begin 
  Result := -1; 
  if StartAt < 0 then 
    StartAt := 0; 
  for i := StartAt to List.Count-1 do 
    if Pos(Pattern, List.GetString(i)) <> 0 then 
    begin 
      Result := i; 
      Break; 
    end; 
end; 
//------------------------------------------------------------------------------------ 
                      function TextBetween(var S: string; StartTag: string; EndTag: string): string; 
var 
  InitialPos: Integer; 
begin 
  InitialPos := Pos(StartTag, S); 
  if InitialPos = 0 then 
    result := '' 
  else 
  begin 
    Delete(S, 1, InitialPos + Length(StartTag) - 1); 
    InitialPos := Pos(EndTag, S); 
    if InitialPos = 0 then 
      result := S 
    else 
    begin 
      result := copy(S, 1, InitialPos - 1); 
      Delete(S, 1, InitialPos + 1); 
    end; 
  end; 
end; 

//------------------------------------------------------------------------------------ 
                               function DeleteTags(var S: string): string; 
var 
   n,len, tag: Integer; 
   c: char; 
   t: String; 
begin 

   tag := 0; 
   t := ''; 
   len := length(s); 

   for n :=1 to len do 
   begin 
      c := Copy(s,n,1); 


      if c = #9 then 
         c := ' '; 

      if(tag=1) then 
      begin 
         if(c='>') then tag := 0; 
         continue; 
      end 
      else 
      begin 
         if(c='<') then 
         begin 
            tag := 1; 
            continue; 
         end; 
         t := t + c; 
      end; 
   end 
   s := t; 
   result := t; 
end; 


//------------------------------------------------------------------------------------ 
procedure AnalyzePage(Address: string); 
var 
  strPage, MovieAddr, MovieTitle, MovieDate, MovieID, Movie: string; 
  BeginPos, EndPos: Integer; 
  BeginPoss, EndPoss: Integer; 
begin 
  strPage := GetPage(Address); 
  BeginPos := Pos('logomini_cine.gif', strPage);
  if(BeginPos > -1)then 
    begin 
      PickTreeClear; 
      Delete(strPage, 1, BeginPos); 
      BeginPos := Pos('cine-', strPage);
      EndPos := 1; 
      while ((BeginPos > 0) and (EndPos > 0)) do 

        begin 
          Delete(strPage, 1, BeginPos); 
          EndPos := Pos('title=', strPage);
          MovieId := Copy(strPage,+5, EndPos-5);
          MovieId   := Comillas(MovieId );
          MovieAddr := 'http://www.index-dvd.com/cine-' + MovieId;
          BeginPoss := Pos('>',strPage);
          EndPoss := Pos('</td>', strPage);
          MovieTitle := Copy(strPage,BeginPoss, EndPoss);
          MovieTitle  := StringReplace(MovieTitle , '>', '</a>');
          MovieTitle  := AnsiUpFirstLetter(MovieTitle);
          MovieTitle  := Comillas(MovieTitle);
          DeleteTags(MovieTitle);
          MovieTitle:= StringReplace(MovieTitle ,#13#10, '');
          MovieTitle:= StringReplace(MovieTitle ,'   ', '');
          PickTreeAdd(MovieTitle, MovieAddr);
          PickTreeSort; 
          BeginPos := Pos('cine-', strPage);
          if(Pos('</body>', strPage) < BeginPos) then 
           BeginPos := -1; 
        end; 

    end; 
    PickTreeExec(Address) 
    AnalyzeMoviePage(Address); 
end; 
//------------------------------------------------------------------------------------ 
procedure AnalyzeMoviePage(Address: string); 
var 
  Page: TStringList; 
  LineNr: Integer; 
  Line: string; 
  Item: string; 
  Comments: string; 
  Actors: string; 
  Directors: string; 
  Description: string;
  Busca: integer;


begin 
  Description := ''; 

  // URL 
  SetField(fieldURL, Address); 

  Page := TStringList.Create; 
  Page.Text := GetPage(Address); 

  // Titulo traducido 
  LineNr := FindLine('<META NAME="TITLE" CONTENT="', Page, 0);
  Line := Page.GetString(LineNr); 
  Item := TextBetween (Line, '<META NAME="TITLE" CONTENT="', '(');
  Item  := AnsiLowerCase(Item);
  Item  := AnsiUpFirstLetter(Item ); 
  HTMLDecode(Item); 
  SetField(fieldTranslatedTitle, Trim (Item)); 

  // Titulo Original 
  LineNr := FindLine('Ficha de', Page, 0);
  if LineNr <> -1 then 
  begin 
    Line := Page.GetString(LineNr); 
    Item := TextBetween (Line, '<b>', '</b>');
    HTMLRemoveTags (Item);
    Item  := AnsiUpFirstLetter(Item ); 
    HTMLDecode(Item); 
    SetField(fieldOriginalTitle, Trim (Item)); 
  end; 
  // año 
  LineNr := FindLine('Ficha de', Page, 0);
  if LineNr <> -1 then 
  begin 
    Line := Page.GetString(LineNr); 
    Item := TextBetween (Line, '<b>(', ')</b>');
    HTMLRemoveTags (Item);
    HTMLDecode(Item); 
    SetField(fieldYear, Trim (Item)); 
  end; 
  // Categoria 
  LineNr := FindLine('minutos /', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('minutos /',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '>', '</font>');
    DeleteTags (Item); 
    Item   := AnsiUpFirstLetter(Item ); 
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldCategory, Trim (Item)); 
  end; 
   // pais 
  LineNr := FindLine('class="titulo">País:</span>', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('class="titulo">País:</span>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '/">', '</div>');
    Item := StringReplace(Item , #13#10, ''); 
    Item  := StringReplace(Item , '   ', ''); 
    DeleteTags (Item); 
    Item   := AnsiUpFirstLetter(Item ); 
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldCountry, Trim (Item)); 
  end; 
   // director 
  LineNr := FindLine(')</b></font> / <a href=', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos(')</b></font> / <a href=',Page.Text), length(Page.Text));
    Item := TextBetween (Item, 'busqueda=', 'title=');
    HTMLRemoveTags (Item);
    Item   := AnsiUpFirstLetter(Item );
    Item   := Comillas(Item );
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldDirector, Trim (Item)); 
  end;
  // productor
  LineNr := FindLine('>Produce:</font></b>', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('>Produce:</font></b>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '>Produce:</font></b>', '</span></td></tr>');
    HTMLRemoveTags (Item);
    Item   := AnsiUpFirstLetter(Item );
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldProducer, Trim (Item));
  end;


  // Duracion 
  LineNr := FindLine('graficos/tipo_pelicula.gif', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('graficos/tipo_pelicula.gif',Page.Text), length(Page.Text));
    Item := TextBetween (Item, ' / ', 'minutos');
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldLength, Trim (Item)); 
  end; 
  // Calificación
  LineNr := FindLine('<div id="calificacion">', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('<div id="calificacion">',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '<div class="voto">', '</div>');
    Item := StringReplace(Item , #13#10, '');
    Item  := StringReplace(Item , '  ', '');
    DeleteTags (Item);
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldRating, Trim (Item));
  end;

  
  // Reparto 
  LineNr := FindLine('minutos / <font color=', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('minutos / <font color=',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '</font></span><br><br />', '<br><br><span');
    HTMLRemoveTags (Item);
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldActors, Trim (Item)); 
  end; 

  
  // sinopsis 
 LineNr := FindLine('Sinopsis</font></td>', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('Sinopsis</font></td>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '#000000', '</font></td></tr>');
    Item   := Comillas(Item );
    Item  := StringReplace(Item , '>', '');
    HTMLRemoveTags (Item);
    Item   := AnsiUpFirstLetter(Item ); 
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldDescription, Trim (Item)); 
  end; 
  // comentarios 
 LineNr := FindLine('class="titulo">Premios:', Page, 0);
  if LineNr > 0 then 
  begin 
    Item := copy(Page.Text, pos('class="titulo">Premios:',Page.Text), length(Page.Text));
    Item := TextBetween (Item, 'class="cuerpo">', '<a class=');
    Item := StringReplace(Item , #13#10, ''); 
    Item  := StringReplace(Item , '   ', ''); 
    Item  := StringReplace(Item , 'Más', ''); 
    DeleteTags (Item); 
    Item   := AnsiUpFirstLetter(Item ); 
    Item  := Trim(Item ); 
    HTMLDecode(Item); 
    SetField(fieldComments, Trim (Item)); 
  end;
  // Caratula
  LineNr := FindLine('[img]http://www.index-dvd.com/covers/300/', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('[img]http://www.index-dvd.com/covers/300/',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '[img]http://www.index-dvd.com/covers/300/', '[/img]');
    Item := StringReplace(Item, '300', '600');
    Item  := Trim(Item );
    HTMLDecode(Item);
    GetPicture ('http://www.index-dvd.com/covers/600/'+Item);
     end;
end;
 //-------------------------------------------------------------------------
begin 
       if (CheckVersion(3,5,0)=FALSe) then 
   begin 
      ShowMessage('Se requiere Ant Movie Catalog versión 3.5 o superior'); 
      exit; 
   end; 

   MovieName := GetField(fieldTranslatedTitle); 
   if MovieName = '' then 
            MovieName := GetField(fieldOriginalTitle); 
Input('IndexDVD', 'Buscar:', MovieName); 

     if(GetOption('Sin resultado') = 0) then  Input('IndexDVD', 'Buscar:', MovieName); 

   AnalyzePage('http://www.index-dvd.com/busqueda.php?busqueda=' + UrlEncode(MovieName));
end. 

japg2000
Posts: 15
Joined: 2004-03-22 19:14:14

Post by japg2000 »

Muchas gracias por todos los scripts que estás haciendo.

Como te lo curras :grinking:
carlosmg2
Posts: 39
Joined: 2009-08-18 19:21:08
Contact:

Post by carlosmg2 »

alguien podria actualizar este script?? son las mejores caratulas que he visto!!

por favor
legrad
Posts: 109
Joined: 2006-02-11 09:46:06
Location: Lerida-Spain

IndexDVD 1.0 actualiada ahora ahora 1.1

Post by legrad »

IndexDVD 1.0 actualiada ahora ahora 1.1

Code: Select all

(***************************************************

Ant Movie Catalog importation script
www.antp.be/software/moviecatalog/

[Infos]
Authors=Legrad
Title=IndexDVD
Description=
Site=www.index-dvd.com
Language=ES
Version=1.1
Requires=3.5.0
Comments=
License=
GetInfo=1

[Options]

***************************************************)

 program IndexDVD;
var
  MovieName: string;
  MovieURL: string;

//------------------------------------------------------------------------------------
function Comillas(var S: string): string;
var
   n,len, tag: Integer;
   c: char;
   t: String;
begin
   tag := 0;
   t := '';
   len := length(s);
   for n :=1 to len do
   begin
     c := Copy(s,n,1);
     if c = '''' then
        c := ' ';
        t := t + c;
   end
   s := t;
   result := t;
end;
//-------------------------------------------------------------------------------
                              function FindLine(Pattern: string; List: TStringList; StartAt: Integer): Integer;
var
  i: Integer;
begin
  Result := -1;
  if StartAt < 0 then
    StartAt := 0;
  for i := StartAt to List.Count-1 do
    if Pos(Pattern, List.GetString(i)) <> 0 then
    begin
      Result := i;
      Break;
    end;
end;
//------------------------------------------------------------------------------------
                      function TextBetween(var S: string; StartTag: string; EndTag: string): string;
var
  InitialPos: Integer;
begin
  InitialPos := Pos(StartTag, S);
  if InitialPos = 0 then
    result := ''
  else
  begin
    Delete(S, 1, InitialPos + Length(StartTag) - 1);
    InitialPos := Pos(EndTag, S);
    if InitialPos = 0 then
      result := S
    else
    begin
      result := copy(S, 1, InitialPos - 1);
      Delete(S, 1, InitialPos + 1);
    end;
  end;
end;


//---------------------------------------------------------------------
function Caracter(str1: string) :string;
begin
          str1 := StringReplace(str1, 'á' , 'à');
          str1 := StringReplace(str1, 'é' , 'é');
          str1 := StringReplace(str1, 'í',  'í');
          Str1 := StringReplace(Str1, 'ó', 'ó');
          str1 := StringReplace(str1, 'ú' , 'ú');
          str1 := StringReplace(str1, 'ñ' , 'ñ');
          str1 := StringReplace(str1, 'Ã�', 'Á');
          str1 := StringReplace(str1, 'É', 'É');
          str1 := StringReplace(str1, 'Ã�', 'Í');
          str1 := StringReplace(str1, 'Ó', 'Ó');
          str1 := StringReplace(str1, 'Ú', 'Ú');
          str1 := StringReplace(str1, 'Ñ', 'Ñ');
          str1 := StringReplace(str1, 'Â', '');

result := str1;
end;//------------------------------------------------------------------------------------
                               function DeleteTags(var S: string): string;
var
   n,len, tag: Integer;
   c: char;
   t: String;
begin

   tag := 0;
   t := '';
   len := length(s);

   for n :=1 to len do
   begin
      c := Copy(s,n,1);


      if c = #9 then
         c := ' ';

      if(tag=1) then
      begin
         if(c='>') then tag := 0;
         continue;
      end
      else
      begin
         if(c='<') then
         begin
            tag := 1;
            continue;
         end;
         t := t + c;
      end;
   end
   s := t;
   result := t;
end;


//------------------------------------------------------------------------------------
procedure AnalyzePage(Address: string);
var
  strPage, MovieAddr, MovieTitle, MovieDate, MovieID, Movie: string;
  BeginPos, EndPos: Integer;
  BeginPoss, EndPoss: Integer;
begin
  strPage := GetPage(Address);
  BeginPos := Pos('en el dominio', strPage);
  if(BeginPos > -1)then
    begin
      PickTreeClear;
      Delete(strPage, 1, BeginPos);
      BeginPos := Pos('<a href="http://www.index-dvd.com/cine-', strPage);
      EndPos := 1;
      while ((BeginPos > 0) and (EndPos > 0)) do

        begin
          Delete(strPage, 1, BeginPos);
          EndPos := Pos('html"', strPage);
          MovieId := Copy(strPage,+39, EndPos-39);
          //MovieId   := Comillas(MovieId );
          MovieAddr := 'http://www.index-dvd.com/cine-' + MovieId+'html';
          BeginPoss := Pos('" class',strPage);
          EndPoss := Pos('index-dvd.com:', strPage);
          MovieTitle := Copy(strPage,BeginPoss, EndPoss);
          MovieTitle  := TextBetween(MovieTitle , '>', 'Cine');
          //MovieTitle  := AnsiUpFirstLetter(MovieTitle);
          DeleteTags(MovieTitle);
          MovieTitle := Caracter(MovieTitle);
          PickTreeAdd(MovieTitle, MovieAddr);
          PickTreeSort;
          BeginPos := Pos('<a href="http://www.index-dvd.com/cine-', strPage);
          if(Pos('Todo acerca de Google', strPage) < BeginPos) then
           BeginPos := -1;
        end;

    end;
    PickTreeExec(Address)
    AnalyzeMoviePage(Address);
end;
//------------------------------------------------------------------------------------
procedure AnalyzeMoviePage(Address: string);
var
  Page: TStringList;
  LineNr: Integer;
  Line: string;
  Item: string;
  dir: string;
  Comments: string;
  Actors: string;
  Directors: string;
  Description: string;
  Busca: integer;


begin
  Description := '';

  // URL
  SetField(fieldURL, Address);

  Page := TStringList.Create;
  Page.Text := GetPage(Address);

  // Titulo traducido
  LineNr := FindLine('<title>', Page, 0);
  Line := Page.GetString(LineNr);
  Item := TextBetween (Line, '<title>', 'Cine');
  Item  := AnsiLowerCase(Item);
  Item  := AnsiUpFirstLetter(Item );
  HTMLDecode(Item);
  SetField(fieldTranslatedTitle, Trim (Item));

  // Titulo Original
  LineNr := FindLine('title="Buscar ', Page, 0);
  if LineNr <> -1 then
  begin
    Line := Page.GetString(LineNr);
    Item := TextBetween (Line, '<a href="http://www.movieweb.com/search/?search=', '"');
    HTMLRemoveTags (Item);
    HTMLDecode(Item);
    SetField(fieldOriginalTitle, Trim (Item));
  end;
  // año
  LineNr := FindLine('Ficha de', Page, 0);
  if LineNr <> -1 then
  begin
    Line := Page.GetString(LineNr);
    Item := TextBetween (Line, '<b>(', ')</b>');
    HTMLRemoveTags (Item);
    HTMLDecode(Item);
    SetField(fieldYear, Trim (Item));
  end;
  // Categoria
  LineNr := FindLine('minutos /', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('minutos /',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '>', '</font>');
    DeleteTags (Item);
    Item   := AnsiUpFirstLetter(Item );
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldCategory, Trim (Item));
  end;
   // pais
  LineNr := FindLine('title="Ficha de', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('title="Ficha de',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '#9A9A9A', '</font>');
    Item := TextBetween (Item, '>', '</font>');
    DeleteTags (Item);
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldCountry, Trim (Item));
  end;
   // director
  LineNr := FindLine(')</b></font> / <a href=', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos(')</b></font> / <a href=',Page.Text), length(Page.Text));
    Item := TextBetween (Item, 'busqueda=', 'title=');
    HTMLRemoveTags (Item);
    Item   := AnsiUpFirstLetter(Item );
    Item   := Comillas(Item );
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldDirector, Trim (Item));
  end;
  // productor
  LineNr := FindLine('>Produce:</font></b>', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('>Produce:</font></b>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '>Produce:</font></b>', '</span></td></tr>');
    HTMLRemoveTags (Item);
    Item   := AnsiUpFirstLetter(Item );
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldProducer, Trim (Item));
  end;


  // Duracion
  LineNr := FindLine('title="Ficha de', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('title="Ficha de',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '</b><br>  ', 'minutos');
    DeleteTags (Item);
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldLength, Trim (Item));
  end;
  
  // sinopsis
 LineNr := FindLine('Sinopsis</font>', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('Sinopsis</font>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '#2D2D2D', '</font></td></tr></table>');
    Item := TextBetween (Item, '>', '</font></td></tr></table>');
    Item := StringReplace (Item, #13#10, '');
    DeleteTags (Item);
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldDescription, Trim (Item));
  end;

  // Caratula
  LineNr := FindLine('[img]http://www.index-dvd.com/covers/300/', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('[img]http://www.index-dvd.com/covers/300/',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '[img]http://www.index-dvd.com/covers/300/', '[/img]');
    Item := StringReplace(Item, '300', '600');
    Item  := Trim(Item );
    HTMLDecode(Item);
    GetPicture ('http://www.index-dvd.com/covers/600/'+Item);
     end;



//--------------------------------------------------------------------------
// imdb
 LineNr := FindLine('http://spanish.imdb.com/title/', Page, 0);
  if LineNr > 0 then
  begin
    dir := copy(Page.Text, pos('http://spanish.imdb.com/title/',Page.Text), length(Page.Text));
    dir  := TextBetween (dir , 'http://spanish.imdb.com/title/', '/');
    dir  := StringReplace (dir , #13#10, '');
    DeleteTags (dir );
    Item  := Trim(dir  );
    HTMLDecode(dir );
    Page.Text := GetPage('http://spanish.imdb.com/title/'+dir);
end;

 // Calificación
  LineNr := FindLine('<div class="inner" style="width: 148px"></div>', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('<div class="inner" style="width: 148px"></div>',Page.Text), length(Page.Text));
    Item := TextBetween (Item, '<b>', '/');
    SetField(fieldRating, Trim (Item));
  end;
  
  // Reparto
  LineNr := FindLine('Reparto', Page, 0);
  if LineNr > 0 then
  begin
    Item := copy(Page.Text, pos('Reparto',Page.Text), length(Page.Text));
    Item := TextBetween (Item, ';">', '</td></tr></table>');
    Item := StringReplace (Item, '...', ' (');
    Item := StringReplace (Item, '</td></tr>', ')'+#13#10);
    Item := StringReplace (Item, '  ', '');
    DeleteTags (Item);
    Item  := Trim(Item );
    HTMLDecode(Item);
    SetField(fieldActors, Trim (Item));
  end;
  end;
 //-------------------------------------------------------------------------
begin
       if (CheckVersion(3,5,0)=FALSe) then
   begin
      ShowMessage('Se requiere Ant Movie Catalog versión 3.5 o superior');
      exit;
   end;

   MovieName := GetField(fieldTranslatedTitle);
   if MovieName = '' then
            MovieName := GetField(fieldOriginalTitle);
Input('IndexDVD', 'Buscar:', MovieName);

     if(GetOption('Sin resultado') = 0) then  Input('IndexDVD', 'Buscar:', MovieName);

   AnalyzePage('http://www.google.es/search?hl=es&num=100&q=' + UrlEncode(MovieName)+'+site%3Ahttp%3A%2F%2Fwww.index-dvd.com&btnG=Buscar&meta=&aq=f&oq=');
end.
Last edited by legrad on 2009-11-14 08:41:27, edited 1 time in total.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

:??: you mean that this is version 1.1 ? As it still has 1.0 in its version field.
legrad
Posts: 109
Joined: 2006-02-11 09:46:06
Location: Lerida-Spain

Post by legrad »

If really version is 1.1, no the 1.0.
He is an error mine.
escusme
I do not speak well English
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

ok, thanks ;)
carlosmg2
Posts: 39
Joined: 2009-08-18 19:21:08
Contact:

Post by carlosmg2 »

could someone update this script?
it's my favourite but sometimes it doesn't find the movie (but in the web exists)

thanx in advance
legrad
Posts: 109
Joined: 2006-02-11 09:46:06
Location: Lerida-Spain

Post by legrad »

En el foro he colgado la nueva version
lestatou
Posts: 25
Joined: 2006-10-28 20:45:45

Post by lestatou »

Hola

gracias por el script!

Dices que en elforo has colgado la ultima versión, supongo que te refieres a la 1.1, no? Porque el foro es este...

Gracias de nuevo.
Post Reply