Posted by: Ivek23
« on: June 28, 2011, 05:21:48 am »
Because the word 'LOCANDINA:' in your code
//Poster
curPos := Pos('LOCANDINA:',HTML);
curPos := PosFrom('src="', HTML, curPos)+5;
EndPos := PosFrom('"', HTML, curPos);
LogMessage('poster0: curpos='+ IntToStr(curPos)+' endpos='+IntToStr(EndPos));
if curPos > 0 then begin
ExtraLinks[smPoster] := Trim(Copy(HTML, curPos, EndPos - curPos));
LogMessage('Poster:' + ExtraLinks[smPoster] );
end;
sedicifilm script did not work, but when I replaced with this word '<div id="gallery_">' in your code
//Poster
curPos := Pos('<div id="gallery_">', HTML);
curPos := PosFrom('src="', HTML, curPos)+5;
EndPos := PosFrom('"', HTML, curPos);
LogMessage('poster0: curpos='+ IntToStr(curPos)+' endpos='+IntToStr(EndPos));
if curPos > 0 then begin
ExtraLinks[smPoster] := Trim(Copy(HTML, curPos, EndPos - curPos));
LogMessage('Poster:' + ExtraLinks[smPoster] );
end;
However sedicifilm script works again.