Author Topic: Little correction on AdultDVDEmpire script  (Read 5052 times)

0 Members and 1 Guest are viewing this topic.

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Little correction on AdultDVDEmpire script
« 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');




« Last Edit: February 18, 2015, 10:29:51 am by pra15 »

Offline AimHere

  • Older Power User
  • *****
  • Posts: 213
    • View Profile
Re: Little correction on AdultDVDEmpire script
« Reply #1 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

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Little correction on AdultDVDEmpire script
« Reply #2 on: February 19, 2015, 10:39:35 am »
Thanks for your precisions and your option for back cover.