English > Scripts and Templates

AdultDVDEmpire script

<< < (9/15) > >>

AimHere:
pra15 fixed the script to handle a change in ADE's page format. They added a "video preview" option to all newer DVDs, which broke the extraction of poster/cover images. (ref: http://www.videodb.info/forum_en/index.php/topic,3966.0.html)

Attached is a complete copy of the script with the changes. This is based on GazonkFoo's version of the script. (I added the ability to disable the downloading of back-cover images, it's controlled by a flag in the "const" section at the top.)

Note: the "AdultDVDEmpire" script posted on the PVD Downloads page (labelled as 0.1.1.1) DOES NOT WORK with the current ADE website layout. In fact, it will lock up Personal Video Database if run! The script version written by GazonkFoo (with mod by pra15) does work.

scarlite:
Thankyou so much! Been tearing my hair out trying to get the old one working. Thought it was something I'd done.

pra15:
AdultDvdEmpire change code in the results page. PVD put the page result as URL of the movie.

Modification of the procedure parsesearchresult :


--- Code: ---procedure ParseSearchResults(HTML: string);
var
  ItemStart, ItemEnd: Integer;
  Title, Studio, Year, URL, Preview: string;
begin
  ItemStart := Pos('Category "List Page" Label="Boxcover">', HTML);
  while ItemStart > 0 do
  begin
    ItemEnd := PosFrom('Category "List Page" Label="Boxcover">', HTML, ItemStart+1);

    URL := BASE_URL + HTMLValue(HTML, ItemStart, ItemEnd, '<h3><a href="', '"');
    Preview := HTMLValue(HTML, ItemStart, ItemEnd, 'Label="Boxcover"><img src="', '"');
    Title := HTMLValue(HTML, ItemStart, ItemEnd, 'Label="Title">', '</a>');
    Studio := HTMLValue(HTML, ItemStart, ItemEnd, 'studio</small>', '</a>');
    Year := HTMLValue(HTML, ItemStart, ItemEnd, '<small>(', ')</small>');

    LogMessage('title: '+ Title +', studio: '+ Studio +', year: '+ Year +', url: '+ URL +', preview: '+ Preview);
    AddSearchResult(Title, Studio, Year, URL, Preview);

    ItemStart := ItemEnd;
  end;
end;

--- End code ---

In the results page on AdultDVDEmpire, the movie must have a thumbnail to work.
I tried it and it seems to work.

I don't know the version of my script but like said Aimhere in the precedent message i suppose it is based of Gazonfoo's script.

AimHere:
Thanks, pra15!

Here is the complete script, version bumped to 0.1.2.4 now.

I had to make a minor edit, ADE changed the HTML near the "Matches Found" text (the script wouldn't interptret it properly otherwise). But it seems to work now.

Aimhere

pra15:
Thanks AimHere,

I saw sometimes the URL is not find, i have modified search results and change the method to find URL.

I have made some tests, it seems to be OK now.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version