DVDpedia field selection.

Any trouble you encounter with the Pedias, here's the place to ask for help.
User avatar
ChoccyHobNob
Contributor
Contributor
Posts: 8
Joined: Fri Feb 05, 2010 1:50 pm
Location: Glastonbury, Somerset, UK

Re: DVDpedia field selection.

Post by ChoccyHobNob »

Conor wrote:Thank you for the bug report, I have updated the beta 10 to be able to handle parenthesis in an Amazon keyword search.

We want to improve the international support to be able to gather the appropriate country ratings. Integrating all the other information would need a bigger overhaul; however, you seem to be handy with Xcode you would be able to add some of the information that you want to gather to the custom fields.
Me making changes to the plugins to suit my needs would be a pain in the ass having to reapply my changes every time there is a new DVDPedia release (Twice so far in this thread alone). I suppose I could write an imdb_supplimental and amazon_supplimental plugin to handle it but I'd still have to remember to keep a copy of them safe so the updater doesn't delete them when the app is updated.

Is is possible to make a plugin overwrite a field that is already populated? They all seem to only fill in the blanks

Ideally I'd like to be able to tell it where to get the data from for each field, but as you say that would require a bigger overhaul. Maybe as a part of the removal of Amazon so the iPhone app can be sold again?
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: DVDpedia field selection.

Post by Conor »

having to reapply my changes every time there is a new DVDPedia release
Custom plug-in can be placed into the data folder (~/Library/Application Support/DVDpedia) in a folder named "Plug-ins". This will make them immune to DVDpedia updates. However, in this case you would need to rename the main class file as well as the display name (to tell them apart). If the name stays the same then DVDpedia prefers the built in version that is included with the program.

To change the class name rename the file called IMDB.m and IMDB.h as well as any reference to those files inside the files:

Code: Select all

#import "IMDB.h"
@interface IMDB : NSObject <PediaPluginMandatory> {
@implementation IMDB
In the info.plist file rename "Principal Class" to match the above new name and PluginSearchName to anything you want.
Is is possible to make a plugin overwrite a field that is already populated? They all seem to only fill in the blanks
Not with a search plug-in. You could move the search code to be run as a menu plug-in. In the case of IMDb the default menu method (menuCommandFor:) shows the preference sheet, but that method gets a list of all the selected records as input and any change is possible, including overwriting fields on those records. With the latest version you can also add any number of menu commands via the plug-in architecture. This is a little more advanced route as you would have to query the list of selected entries yourself from the plugin manager, instead of them being handed to the method (all of the needed information is in that same forum thread).
Post Reply