Here are the changes I've made to correct my problems (1 year ago, I think). But you can't download the picture anymore since 5-6 months. AMC can't send cookies, referer..., so I don't analyze the problem deeper.
Replace AnalyzePage() with this code:
Code: Select all
procedure AnalyzePage(Address: string);
var
Page: TStringList;
LineNr: Integer;
begin
Page := TStringList.Create;
Page.Text := GetPage(Address);
if pos('<TITLE>Filmposter-Archiv - Filmposter-Suche', Page.Text) = 0 then
begin
AnalyzeMoviePage(Page)
end else
begin
if FindLine('<B>0 Treffer</B>', Page, 0) < 0 then
begin
PickTreeClear;
LineNr := 0;
LineNr := FindLine('<OL>', Page, LineNr);
if LineNr > -1 then
begin
PickTreeAdd('Suche nach "' + MovieName + '" ergab folgende Treffer:', '');
AddMoviesTitles(Page, LineNr);
end;
if PickTreeExec(Address) then
AnalyzePage(Address);
end;
end;
Page.Free;
end;
Code: Select all
LineNr := FindLine('<IMG SRC="../p_', Page, 0);
Code: Select all
LineNr := FindLine('<IMG SRC="../filmplakat/', Page, 0);
Andreas