Music database problem-suggestion

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

Moderator: Gurus

Music database problem-suggestion

Postby Mizo_Mizo » Mon Jul 19, 2010 8:01 am

Hello everyone, I've been using MM since about 18 months so far. I'm not a programmer, but I'm interested in tweaks and improvements for almost everything I have in my computer. And this includes MM.
First of all, I want to apologise if this is not the right place for this kind of suggestion-request, but is the one that seemed correct to me.

Secondly, I'm going to explain my idea.
I'm sure that many of you have thought about this before, and possibly already have the answer to my question.
Some time ago, I decided to create a database in MS Access to store my music data. In order to achieve this, I had to
1) Check and correct the mp3 files' tags. (which is more or less done)
2)Decide the database structure. (which is the following:)
My MS Access database has got five tables: Albums, Artists, Artists_Website, Style, and Format. I introduce info in the tables through forms, which are: Artists, Style, Format, *Albums (embedded into Artists form) and *Artists_Website (embedded into Artists form). Thus, I only need to open the Artists form, and from there introduce any info I want: Artist ID, artist name, origin, artist style, years active, website(s), and description of this website (whether it is their Youtube channel, official page, etc.), current members, former members, and info about their albums: album ID, album name, publishing year, artist ID, album format (whether it's an EP, LP, promo CD, double CD, etc.)

Okay, this being said, the problem is that I could do all this manually, looking at my files, tags, and searching the Web, and introducing the data one by one, but I think there MUST be a way of doing this - or something similar - automatically. I found a couple of programmes (Music Collector, and Music Label 2010), but they don't really satisfy what I want. And after that I thought there could be some way of exporting MM's database, or converting it, I don't know... I also thought of some foobar2000 feature or script, but I don't really know where to start.

This is my problem, so any help is welcome; and for you developers, if some of you wants to take the challenge of creating a script that can do this, the idea is all yours... ;)
Thank you all for your attention.
Cheers!
Mizo_Mizo
 
Posts: 4
Joined: Mon Jul 19, 2010 7:29 am

Re: Music database problem-suggestion

Postby trixmoto » Mon Jul 19, 2010 9:10 am

If you use MM then all the data is stored in an SQLite database - what do you gain by exporting some of this data into an MSSQL database?
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Music database problem-suggestion

Postby Mizo_Mizo » Mon Jul 19, 2010 4:19 pm

Yeah, but what I would like to do is access that data, introduce new data in the DB and maybe edit/modify/view it. What I understand from what you say is that if I do any modification, such as adding a new album, or a new artist, or modifying metadata from existing songs, when MM rescans that folder, changes will be added to MM's SQLite database, right?
So, knowing this, what I would like to do is, as I said, acces that database locally (not through the Internet, I mean, that could be another project...), maybe print some certain info, etc.
I don't know if you understand me, it's not easy to explain, what I mean is having access to the database, but not through MM, and using MS Access seems to me the easiest possibility, because it's the software I'm accustomed to. However, if there's any other way of doing what I say, I shouldn't refuse taking a look at it...
Thank you!
Mizo_Mizo
 
Posts: 4
Joined: Mon Jul 19, 2010 7:29 am

Re: Music database problem-suggestion

Postby trixmoto » Mon Jul 19, 2010 4:33 pm

Well my "Backup Playlists" script has over the years both exported from an MSSQL database (.mmdb) to create a new one with a subset of data, and the same for an SQLite database (.db). I'm sure these could be amalgamated to export from MM's SQLite database and create a new MSSQL database with a subset of data. I imagine it would be hardcoded to take the tables that you want and create them as certain other tables, creating all the links, etc. It could have a proper GUI settings screen that allowed you to select tables from the current database and rename them in the new database though.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Music database problem-suggestion

Postby Lowlander » Tue Jul 20, 2010 10:45 am

I would be interested in that, getting data from MM to SQL Server.
Lowlander
 
Posts: 31673
Joined: Sat Sep 06, 2003 5:53 pm

Re: Music database problem-suggestion

Postby Mizo_Mizo » Wed Jul 28, 2010 7:43 am

trixmoto wrote:Well my "Backup Playlists" script has over the years both exported from an MSSQL database (.mmdb) to create a new one with a subset of data, and the same for an SQLite database (.db). I'm sure these could be amalgamated to export from MM's SQLite database and create a new MSSQL database with a subset of data. I imagine it would be hardcoded to take the tables that you want and create them as certain other tables, creating all the links, etc. It could have a proper GUI settings screen that allowed you to select tables from the current database and rename them in the new database though.

Sorry for taking so long in replying, I had a busy week.
Then, do you mean you could create a script for this issue, using your "Backup playlists" script as a starting point?
Mizo_Mizo
 
Posts: 4
Joined: Mon Jul 19, 2010 7:29 am

Re: Music database problem-suggestion

Postby trixmoto » Thu Jul 29, 2010 3:42 am

Yes, I think all the code for a simple script is in there, it just needs reformatting to do this specific task. A fuller script with a GUI would probably be much better though, but would obviously take a lot more time. I've put it on my list, but I don't get as much time as I'd like for scripting these days, so I don't know when I'll get round to it. I'm trying to tidy up my existing scripts before I start on any new ones.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Music database problem-suggestion

Postby Lowlander » Fri Jul 30, 2010 11:35 am

Ok, I've subscribed to the topic to get notified on any updates on this.
Lowlander
 
Posts: 31673
Joined: Sat Sep 06, 2003 5:53 pm

Re: Music database problem-suggestion

Postby Mizo_Mizo » Fri Aug 13, 2010 5:41 pm

All right trixmoto, thank you for your help. If you ever carry out this idea, please let me know. However, I think I'm going to try something by myself (accessing the DB file through some other software).If I get some results, I'll post them here. Anyway, thanks for interesting in my thread, and sorry for taking so long in replying. I don't really get so much time for this.
And you, Lowlander, if you're interested or script something in relation with this, please let me know as well.
Thank you, cheers!
Mizo_Mizo
 
Posts: 4
Joined: Mon Jul 19, 2010 7:29 am

Re: Music database problem-suggestion

Postby Lowlander » Fri Aug 13, 2010 11:59 pm

I'd just like to get data from MediaMonkey into a SQLServer database, anything that can get me there would be welcome.
Lowlander
 
Posts: 31673
Joined: Sat Sep 06, 2003 5:53 pm

Re: Music database problem-suggestion

Postby trixmoto » Sat Aug 14, 2010 7:50 am

It's still on my list, I'll get round to it one day! :)
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Music database problem-suggestion

Postby ZvezdanD » Mon Aug 16, 2010 6:16 pm

Mizo_Mizo wrote:having access to the database, but not through MM, and using MS Access seems to me the easiest possibility, because it's the software I'm accustomed to. However, if there's any other way of doing what I say, I shouldn't refuse taking a look at it...

You could consider a possibility to downgrade MediaMonkey since old program v2.x had database in MS Jet (Access) format. There is also programs which could convert SQLite database to MS Jet format, but they are all commercial, AFAIK.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm


Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 1 guest