Skip to content
chriswood edited this page Sep 13, 2010 · 10 revisions

So this is the beginning of a project that I hope will be useful for office type networks, where a lot of people have shared itunes libraries. Right now all this does is parse your library (actually a test one at the moment, but you can easily change that by removing a comment), and print a few things about each track. I hope to store this info in a central database, and then make an interface to get various information out of it. The main thing I want to be able to do is search among various users for a song easily, but also some statistics of what is the most popular tune, etc… would be fun. I figure this main script will be something that runs here and there when you do stuff with the main interface maybe, to keep stuff up to date without being annoying.

To use this at the moment, just run…
python read_tunes.py user
== edit 4/17/2010 ==
Things are now at the point where this happens…
You run the command above….
If you don’t give a user it will try and use whatever you are logged onto your machine as.
If this user doesn’t exist, the needed directories and sqlite db will be created.
This user is inserted/validated against the central db
Your entire itunes library will be parsed, and the track title, artist, and album will be put in the local songs database.
The songs will be displayed as they are added.

Next:
Get the central db to sync with the local
Create web interface for central db to handle syncing your stuff, as well as get statistics
chris

Clone this wiki locally