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.


Messages - AimHere

Pages: 1 ... 5 6 7 8 9 [10]
181
Scripts and Templates / Re: AdultDVDEmpire script for 0.9.9.5+
« on: May 12, 2009, 03:44:12 pm »
Quote
(P.S. - why did the prDownload code value change, anyway? Changes that break existing scripts = bad...)

I know, but it made my code simpler and PVD has not reached the version 1.0, so i allowed it to me  :P

*sigh* Developers... :P

AimHere

182
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: April 24, 2009, 02:42:10 pm »
I was afraid of that.

183
Scripts and Templates / Re: AdultDVDEmpire script for 0.9.9.5+
« on: April 23, 2009, 10:42:25 pm »
Update:

Modified script to deal with changes to how Adult DVD Empire embeds studio names in their HTML.

This version is for PVD 0.9.9.5 and above. I have not tested it (I'm still using RVD version 0.9.8.20), but it is based on the code posted by rick.ca, all I changed was the parts dealing with studio names. If anyone has trouble with it, let me know.

Aimhere

(P.S. - why did the prDownload code value change, anyway? Changes that break existing scripts = bad...)

[attachment deleted by admin]

184
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: April 23, 2009, 10:33:04 pm »
A revised script for versions 0.9.9.5+ only has been posted here.

Hopefully, Aimhere will be willing to maintain both versions of the script. :-\

Oh, do I have to???  :P Sigh...

Anyway, yet another update: Adult DVD Empire changed the URLs linking to studio pages, both in the search results page and on the individual DVD info pages. This broke the extraction of the studio names. I think I have it fixed, but it may not be bulletproof. (Basically, there's no longer a fixed string as part of the studio page URL; I had to make the script search for a different fixed string preceding the URL, then assume that the name of the studio is right after the next URL found in the HTML. This won't work if there's ever a title that doesn't HAVE a URL link to a studio page.)

Script for 0.9.9.4 and lower is attached. See the other thread for 0.9.9.5 and higher.

Aimhere

[attachment deleted by admin]

185
Support / IMDb import
« on: April 09, 2009, 05:01:36 pm »
Hi,

I've noticed a minor issue with importing from IMDb. When I'm in People view and import a person's filmography, I always use the "merge filmographies" option, so that the IMDb data is merged with any existing filmography I have for the person. Trouble is, there are many occasions where the IMDb import creates duplicate entries for movies I already have listed for the person. Now, I can understand this when the year of release listed on IMDb is different than what I had in my database, or the spelling is different, but that only accounts for some of the duplicates.

What seems to be happening is this: if IMDb happens to use different capitalization on a movie title than what I already had, then the import process creates a separate entry. For example, if IMDB has "Pirates of the Caribbean", while I already had "Pirates Of The Caribbean" (note the capitalization differences), then I wind up with two movies listed. In other words, the import process appears to be case-sensitive! (Note that if the capitalization matches, then no duplicate would be created.)

This frequently happens when I add a movie in Movie View with "New Movie Master", then go to People View and import from IMDb to "flesh out" the actor's filmography. If I happened to capitalize the title differently in "New Movie Master" than what IMDb uses, I'll get duplicate entries after the second step.

For what it's worth, I don't know if this is necessarily the fault of the IMDb plugin, or if it's an issue with the internal functioning of PVD.

Would it be possible to change the plugin and/or PVD so it either ignores upper/lowercase or automatically corrects it when merging filmographies?

Aimhere

186
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: March 30, 2009, 03:21:00 pm »
Okay, another minor update of the script...

Seems Adult DVD Empire changed some of their HTML (again) and the script wasn't importing the studio name at all. Fixed.

AimHere

[attachment deleted by admin]

187
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: March 06, 2009, 10:52:02 pm »
Adult.DVDEmpire.com script version 0.1.0.3

Hi again,

Okay, I made a few more changes. First, per my previous post, the search results parsing was modified to include the Studio name in the results, and to do a sanity check on the presence of the production year. Search results are now presented in either of the following forms:

Quote
Title / Studio (Year)
OR
Title / Studio

Note that the production Year is only included if the Adult DVD Empire search results page includes it for that item. The script no longer "skips over" items in the search results if the Production Year is missing. This should avoid a lot of confusion.

Unfortunately, I also discovered that Adult DVD Empire recently changed the formatting of the URLs in search results, which completely broke the PVD script! That is, attempting to import movie information with the AdultDVDEmpire script did NOTHING. The script couldn't locate the keywords it was expecting to see in the HTML, and so couldn't extract ANY information from the webpages.

So I scrutinized the HTML generated by the Adult DVD Empire search engine, and made some adjustments. The script will once again properly import the original title, year, genres, categories, studio, URL, description, and features.

However, the script might not properly import people names (actors, director, etc.).  The HTML around the Cast list has changed (especially URLs). I wrangled with the script enough for it to extract at least some of the people names and associated URLs, but some things still aren't working right. On several tests I ran, the modified script imported all people properly; on others, it only grabbed a few, and/or missed their URLs.  It's not perfect, but right now I'm tired of beating my head against this particular wall. I think it's going to take someone with greater programming skill than I to fully correct the page parsing.  (Nostra, are you listening???)

Aimhere

[attachment deleted by admin]

188
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: January 26, 2009, 04:02:38 am »
Hi again,

While importing some movie info, I happened to discover a bug with the plugin. If there is no single exact match for a movie on ADE (e.g. multiple matches, or no exact match at all), the plugin pops up a dialog listing possible matches for the user to choose from. But sometimes, that list will be missing some titles, and some of the ones that are shown will have the wrong year displayed alongside them. This can be verified by opening a web browser, going to the ADE site, and plugging the title of the movie (as you entered it in PVD) into the search form.

It appears the problem is that the ADE search results don't always give a "Production Year" for every movie on the list; sometimes, there is only a release date. But the plugin depends on the Production Year when generating the list for the dialog, and if it is missing, the plugin takes the year from the next entry that does have a "Production Year" tag. And in the process, skips over everything in-between!

For example, suppose a search  would turn up the following results if done manually:

  • Movie A,  Release Date 1/1/2002 ~ Production Year 2001
  • Movie B   Release Date 9/9/2007    (missing Production Year)
  • Movie C,  Release Date 10/10/2000 ~ Production Year 1999
  • Movie D,  Release Date 12/25/1986 ~ Production Year 1985

The plugin would pop up a dialog containing this, instead:

  • Movie A (2001)
  • Movie B (1999)
  • Movie D (1985)

Note that Movie B has picked up the "Year" from Movie C, and Movie C itself is skipped entirely.  If there happen to be several entries between the one that is missing the "Production Year" and the next one that isn't, ALL the ones in-between will be skipped. I've seen search results that might contain a dozen entries, yet the ADE plugin only showed three! :(

Perhaps it would be better to extract the "Release Date" information from the search results, and use that to populate the list in the dialog?  Every entry in the search results does have a "Release Date" given, unlike the "Production Year", so no special programming tricks would be needed to avoid skipping entries.

Better still, I think, would be to extract the name of the production studio from the search results, and display THAT in the dialog, instead of (or in addition to) the year of production or release. Personally, I think it would be easier to distinguish among similarly-titled movies based on the name of the studio, rather than the year, since there ARE sometimes several movies with the same title released in the same year by different studios. (I guess in the porn industry it's hard to be original, LOL!)

(Note that the problem only affects the generation of the list that's shown for the user to choose from. I believe that once the user picks an item from the list and clicks "OK", the script will properly extract the "Production Year" [if it exists] from the main webpage for the chosen movie, in a separate step. However, even this could stand to be improved, since if the "Production Year" is not given for a movie at all, the script currently fills the "Year" field in PVD with a value of 0 [zero]...)

I'll see if I can figure out a way to fix these problems. My previous modifications were pretty simple, and I'm not really familiar enough with the PVD scripting system to make bigger changes just yet, but I'll see what I can do.

Aimhere

189
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: January 26, 2009, 01:39:49 am »
Another update:

I noticed that the existing script did not import anything into a movie's "Category" field, despite AdultDVDEmpire providing "Category" information for each movie title. So, I went ahead and added that functionality to it. I basically found the subroutine that imports the "Genre" field and copied it, substituting "Category" for "Genre":
Code: [Select]
//Category
 curPos := PosFrom('<div class="Item_BrowseSectionTitle">Category:&nbsp;&nbsp;</div>', HTML, curPos);
 if curPos > 0 then begin
  curPos := curPos + Length('<div class="Item_BrowseSectionTitle">Category:&nbsp;&nbsp;</div>');
  EndPos := PosFrom('</div>', HTML, curPos);
  Tmp := Trim(RemoveTags(Copy(HTML, curPos, EndPos - curPos), False));
 
  AddFieldValue(mfCategory, Tmp);
 end;
 

Note that this part should be inserted right before the "//Genre" section.

Following the advice of previous posts, I also updated the "//Script Data" section and bumped up the version number:
Code: [Select]
//Script data
 //Fixed: "Production Year" changed to "Year" - AimHere 01/15/2009
 //Added: movie Category field - AimHere 01/25/2009
 SCRIPT_VERSION = '0.1.0.2';

I've tested this against my own database and it works as intended. Note that with AdultDVDEmpire, it is possible for a title to belong to more than one category.

I'm attaching the complete script to this post.

Enjoy!

[attachment deleted by admin]

190
Scripts and Templates / Re: Adult.DVDEmpire.com (movies)
« on: January 15, 2009, 02:43:10 pm »
Hi,

I've noticed lately that this script no longer properly imports the Production Year for titles from the website. It appears that Adult DVD Empire modified the text preceding the year value on their website, which the parser in the script depends on to locate the year. Fortunately, the script is easy enough to fix. Just locate the "adultdvdempire.psf" file (in the Scripts subfolder of the main Personal Video Database program folder), open it with a text editor, and search for all occurances of the string "Production Year" and replace them with just "Year".

For reference, the affected sections of code are as follows:
(Starting around line 204)
--------------------------------------------------------
//Year
 AddFieldValue(mfYear, Trim(TextBetween(HTML, '/ Production Year:', '</span>', False, curPos)));  <--- change this
 if curPos < 1 then
  curPos := EndPos; 
--------------------------------------------------------
and (within procedure ParseSearchResults, around line 347)
--------------------------------------------------------
 
  curPos := PosFrom(' Production Year: ', HTML, EndPos);    <---change this
  if curPos > 0 then begin 
   curPos := curPos + Length(' Production Year: ');             <---change this
   EndPos := PosFrom('</span>', HTML, curPos);
 
   Year := Trim(Copy(HTML, curPos, EndPos - curPos));
  end;
--------------------------------------------------------

Hope this helps.
Aimhere

191
Feature Suggestions / Re: Vote: Features for 0.9.9
« on: December 18, 2008, 02:49:27 am »
Going along with the idea of an "append database" function as shown in the poll, I would like the ability to SPLIT a database, or more to the point, the ability to select a number of records (via clicking, search, or whatever) and save them directly to a new database. I understand that I could export to a CSV file, start a new database, then import from the CSV, but this approach involves extra steps and might not properly transfer all the database info if the export template isn't set up just right.

From the user's perspective, it would be easier to have a built-in feature that just saves all selected records as a new database, automatically including all fields (including custom ones).  Right now, the only real way to achieve the same functionality is to "save as" to a new file, then select and delete all the records I don't want.

AimHere

Pages: 1 ... 5 6 7 8 9 [10]
anything