FILL DATABASE WITH ALBUM BY CODE

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

broekhuis
Posts: 8
Joined: Wed Dec 30, 2009 3:34 am

FILL DATABASE WITH ALBUM BY CODE

Post by broekhuis » Fri Jan 01, 2010 3:59 pm

Hi,

I need to add artists, albums and tracks to the sql database.
How do I add this by code / OLE automation?

The folder and file structure is like: artist (folder) --> album (subfolder) --> track (filename.mp3)
With this informaition I have to get the data into the associated tables.

I don't want to add all albums at the same time, but be able to add albums one by one.
Of course I could use direct SQL INSERT statements, but I assume MM could do this the easy way?

Regards, Gerrit

Teknojnky
Posts: 5533
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Re: FILL DATABASE WITH ALBUM BY CODE

Post by Teknojnky » Fri Jan 01, 2010 6:31 pm

why don't you simply use add/rescan to add the tracks to the library?

broekhuis
Posts: 8
Joined: Wed Dec 30, 2009 3:34 am

Re: FILL DATABASE WITH ALBUM BY CODE

Post by broekhuis » Sat Jan 02, 2010 6:53 am

Hi Teknojnky,

As I tried to point our, that's not what I want.
I want to fill the database very selective, not with all I've got.

Further it has to be done by code (OLE automation), not by user interaction.

Regards, Gerrit

Post Reply