Personal Video Database
English => Development => Scripts and Templates => Topic started by: pra15 on February 18, 2015, 09:45:45 am
-
Some page change links of Front and Back cover.
Addapt of your sort of script:
//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');
-
Thanks for fixing this!
(To be clear, this code looks like it replaces the //Poster section of GazonkFoo's version of the script. But it would probably work for other versions, not tested.)
See main AdultDVDEmpire script thread for more...
Aimhere
-
Thanks for your precisions and your option for back cover.