This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Re: MySQL structure

Tags: None
(comma "," separated)
boblemur
Registered Member
Posts
4
Karma
0

MySQL structure

Fri Jul 25, 2008 12:31 pm
hey all, i was wondering if their was somewhere i could find out about how the music database is structured in amarok

i really like it so far ( have changed from windows to ubuntu) but i was wanting to write myself a python script to import my entire itunes library directly, i know you can use the MySQLdb module to do this in python, however i dont know where to get the information about the database itself...

any pointers would be much apreciated thanks :)
boblemur
Registered Member
Posts
4
Karma
0

Re: MySQL structure

Fri Jul 25, 2008 12:34 pm
sorry, this is prob in the wrong post... if their is a mod... could you please move it to dev possibly or help
PaladinOfKaos
Registered Member
Posts
3
Karma
0

Re: MySQL structure

Sun Jul 27, 2008 7:53 pm
I'm writing a python script to do the exact same thing, actually.
If you're using MP3s, you can just point Amarok to your top-level directory and it will work fine. If, like me, you're using WAVs, you need some sort of script (you seem to have figured this out already)

I don't know if there are any formal documents on the format. I'd suggest going into mysql and doing a "show tables;" then "describe ;" for each table that looks interesting. That's what I've been doing. I don't have it in a text file, though. Otherwise I'd send it to you.

The other thing I'd suggest doing is findind some tagged MP3 files so you can see how things actually get stored in the database. It's really helpful.
boblemur
Registered Member
Posts
4
Karma
0

Re: MySQL structure

Mon Jul 28, 2008 9:28 am
yeh thats what iv been trying to do ( show tables and desc tables...) but i was yeah more looking for a more formal format of the database, its ok though, thanks for that, and i was making mine so that it will take all of them playcounts and ratings etc out of an itunes xml export...
PaladinOfKaos
Registered Member
Posts
3
Karma
0

Re: MySQL structure

Tue Jul 29, 2008 5:10 am
I'm not worried about playcounts and ratings - it's a shared iTunes setup. Mine's just grabbing standard metadata (artist, album, genre, &c).

If you're interested in collaborating, I'm gonna set up a page on Google code to handle source control anyway, so it's not a big deal to get it set up with another author.
boblemur
Registered Member
Posts
4
Karma
0

Re: MySQL structure

Tue Jul 29, 2008 11:56 pm
are you working in python???

email me... n_d_89@hotmail.com


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]