English > Scripts and Templates

Little correction on AdultDVDEmpire script

(1/1)

pra15:
Some page change links of Front and Back cover.
Addapt of your sort of script:

--- Code: ---//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');
--- End code ---




AimHere:
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

pra15:
Thanks for your precisions and your option for back cover.

Navigation

[0] Message Index

Go to full version