How to solve a problem like ''no space left on device''?
One way is to delete stuff. We all hate doing that, well at least I do. A lot of my hard disk space is used up by music in digital form. I'm probably not even aware some of them are still there or what they are.
Hereby I propose a piece of software to help you decide if its reasonably 'safe' to delete a song or if its something you should listen to more often because chances are you will like it.
Using MusicBrainz to identify a song, LastFm to find out similiar artists and backed by ZODB.
When deletion time comes one compiles a list of files that need to be kept based upon what songs have been listened to(possibly listened to > X times). Every file not on the list is a possible candidate for deletion. Unless the artist of that track has a high recommendation score, i.e. artist is often listed as "you would also like".
Lets see if this will work out.
So far I have made a small python script that gets told by xmms what song is running. It will then start a MusicDns process that will figure out its PUID and then query MusicBrainz for information about the song.
TODO:
- record tracks played in ZODB
query LastFm for recommended artists
- see if this is any help at all
intresting links:
ZCatalog outside of Zope -- http://www.blazingthings.com/dev/zcatalog.html
HowTo use ZCatalog outside of Zope -- http://www.zope.org/Members/kelcmab3/catalog_out_of_zope
ZODB programming guide -- http://www.zope.org/Wikis/ZODB/FrontPage/guide/zodb.html
