Pb updating Movie Database (1 Viewer)

zebons

Portal Pro
January 2, 2006
1,484
114
Hi,
In My plugin 'MyFilms', I want to update the Video Database for having OSD informations during playing movies.
To do so, I use standard functions to Update the Video Database :
No problems to add Movie Infos with command :
VideoDatabase.SetMovieInfoById(iidMovie, ref movieDetails);

But after the two commands below :
int iiGenre = VideoDatabase.AddGenre(champselect.ToString());
VideoDatabase.AddGenreToMovie(iidMovie, iiGenre);

Genre are correctly added but not affected to my Movie. Same problem with Actors.
I got an Actor named 'unknown' instead the true one as you can see in the attached doc.
Module AddGenreToMovie ans AddActorToMovie doesn't seem to work correctly or I do a mistake....
I work with MP 0.2.0.0 and I try with the latest SVN 2001011 ans it's rthe same problem.
Can you help me ?
zebons
 

HappyTalk

Portal Pro
July 16, 2006
307
8
UK
I may have totally misunderstood your question BUT hazarding a guess maybe you are adding a new genre and actor to the actor & genre table but NOT adding the required entries in the genrelinkmovie and actorlinkmovie tables to link the actual movie entry to the relevant genres & actors. If you open up the VideoDatabaseV5.db3 using the SQLite Database Browser.exe found in mediaportal\docs you can clarify this.

Is the source code for your plugin available as there's 2 minor things I'd like to clear up (multiple filenames comma seperated + make back not exit MyFilms when in genre/year). I was contemplating having a go at a movie plug myself but your is so damn close to what I want it makes no sense.

cheers
 

zebons

Portal Pro
January 2, 2006
1,484
114
Hi Happytalk,
Effectively, genres are correctly added by the MP standard functions VideoDatabase.AddGenre , but the link between genres and movies doen't seem to work correctly with the other function VideoDatabase.AddGenreToMovie(iidMovie, iiGenre). And it's the same problem with Actors....
I'll try to see the problem with the SQLite Database Browser.exe. Thanks.
As soon as i correct that mistake, I'll release the next version and the sources so you'll be able to modify and improve it.
 

HappyTalk

Portal Pro
July 16, 2006
307
8
UK
That'll be cool. Bar 1 or 2 minor issues I mentioned on the main thread I reckon it's 99% perfect as far as a movie plugin goes and needs little further work.

I have to admit I didn't quite 'Get It' at first re the concept of directly using an Ant database, but having used both Ant and your plug extensively now, the mist has cleared and I see your plugin is such a clean, unbloated and very elegant solution whereby you get all the power of Ant for free! I have just finished bug fixing and 'pimping up' the tv.com script in Ant over last week to be totally automated, I'll release it soon.

cheers
 

Users who are viewing this thread

Top Bottom