Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - firefox

Pages: [1]
1
Scripts and Templates / DMM script (JAV movies)
« on: November 09, 2013, 03:22:50 pm »
Hello everyone,

I just finished the script i made for dmm.co.jp, a site for Japanese Adult Videos. The script only run well with PVD v1.0.2.7.
The script bases on http://unblockdmm.com to browse dmm.co.jp, so it works only when unblockdmm is online.
Can only search with title, which based on series and a sequence number (Ex: fset418), not japanese title. When searching, you can see two movies with same title, poster (one for rental, one for mail order). You must select mail order title, which has price (Ex: 上原亜衣式 早漏チ○ポ強化合宿 --- Price: 6,069円), for exactly Release date.
For now, only the following movie fields are imported from the website:
Poster, Screenshots, URL, Original title, Studio, Series (added into Tags, Comments), Actors, Director, Duration, Genre, Release date and Customer rating (added into IMDB rating).
Extract two files in attached file to Scripts folder to use the script.

2
Development / Character encoding for script
« on: October 20, 2013, 05:23:53 pm »
Hello,
Many thanks for the great program.
I've started to write an import script for japanese site (EUC-JP encoding) and I've noticed a strange thing.
I cannot use japanese character in PosFrom.
Os: Windows 8, PVD 1.0.2.6, the script file saved with encoding utf-8.
Code: [Select]
  StartPos := Pos('<table border="0" cellpadding="2" cellspacing="0" class="mg-b20">', HTML);
  StartPos := PosFrom('">レーベル:</td>', HTML, StartPos);
    Cast := Trim(TextBetween(HTML, '>', '<', False, StartPos));
  if Cast <> '----' then
  begin
    CastURL := BASE_URL + Trim(TextBetween(HTML, 'href="', '"', False, StartPos));
    Cast := Trim(TextBetween(HTML, '">', '<', False, StartPos));
    LogMessage('writer: '+ Cast +', url: '+ CastURL);
    AddMoviePerson(Cast, '', '', CastURL, 2);
  end else
    LogMessage('writer not found');


Pages: [1]