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