LineNr := FindLine('/graphics/pornstarempire/6283st2.jpg',Page,0);
and
BeginPos := pos('/graphics/pornstarempire/6283st2.jpg', Line)+36;
are for. I am trying to convert this script for DVDEmpire.com. Any help would be much appriciated. Thanks in advance
Dan
Code: Select all
 //Actors & Director
  LineNr := FindLine('/graphics/pornstarempire/6283st2.jpg',Page,0);
  if LineNr > -1 then
  begin
    Line := Page.GetString(LineNr);
    BeginPos := pos('/graphics/pornstarempire/6283st2.jpg', Line)+36;
    Delete(Line, 1, BeginPos);
    FullValue := '';
    Value := '';
    repeat
      BeginPos := pos('sort=2', Line);
      if Value <> '' then
      begin
        if BeginPos <> 0 then
        begin
           FullValue := FullValue + Value;
          FullValue := FullValue + #13#10;     
        end;
        setField(fieldDirector,Value);
      end;
      Delete(Line, 1, BeginPos+7);
      EndPos := pos('</a>', Line);
      Value := copy(Line, 1, EndPos - 1);
      Delete(Line, 1, EndPos);
    until Line = '';
   
    HTMLDecode(FullValue);
    setField(fieldActors,FullValue);
  end;