Personal Video Database

English => Development => Scripts and Templates => Topic started by: pra15 on February 18, 2015, 09:45:45 am

Title: Little correction on AdultDVDEmpire script
Post 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:
Code: [Select]
//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');




Title: Re: Little correction on AdultDVDEmpire script
Post by: AimHere on February 19, 2015, 04:55:38 am
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
Title: Re: Little correction on AdultDVDEmpire script
Post by: pra15 on February 19, 2015, 10:39:35 am
Thanks for your precisions and your option for back cover.