Posted by: pra15
« on: February 19, 2015, 10:39:35 am »Thanks for your precisions and your option for back cover.
//Poster (Front & Back)
PosterURL := HTMLValue(HTML, 0, 0, '<div id="Boxcover"><a href="', '"');
BackPosterURL := StringReplace(PosterURL, 'h.jpg', 'bh.jpg', False, True, False);
Logmessage ('Front: ' + PosterURL);
if PosterURL = '' then begin
PosterURL := HTMLValue(HTML, 0, 0,'</span></span></a><br /><a href="', '"');
BackPosterURL := StringReplace(PosterURL, 'h.jpg', 'bh.jpg', False, True, False);
LogMessage('poster: '+ PosterURL +', back: '+ BackPosterURL);
AddImageURL(0, PosterURL);
AddImageURL(0, BackPosterURL);
end else if (PosterURL <> ' ') AND (PosterURL <> BackPosterURL) then begin
AddImageURL(0, PosterURL);
AddImageURL(0, BackPosterURL);
end else
LogMessage('poster not found');