No more sweet music.
January 24, 2008 4:44 AM Subscribe
Say I wanted to fill the genre tags of my whole mp3 library automatically.
Say I trusted the
last.fm community enough to use the three most used tags for a certain song/album listed there (for example:
New Order's Ceremony would get "80s" "new wave" and "post-punk").
Say I wanted to do this automatically.
Say I had a Mac.
How would I go about this?
I hate that none of the software I know adds genre tags automatically. And yeah, I know that people think differently about different genres, but I'm willing to overlook that and just go for the most common genre "opinion" for now. This seems like a nice solution - I know it would go wrong on occasions, but it seems quite accurate overall.
I know /some/ Ruby. I'm not really proficient at it, but I could learn. Or can you think of a better way?
posted by Skyanth to computers & internet (12 answers total) 16 users marked this as a favorite
Audioscrobbler.net has an API that you can use to fetch the tag information for a given track -- see here for an example of the XML file returned when calling the API for Metallica's Enter Sandman.
From there, you'd need to parse the XML file to get the three tags, and then find a Ruby library to use that XML data to modify the tag information. Here's a module to do it in Perl. Here's a library to do it in Ruby.
posted by Doofus Magoo at 5:23 AM on January 24, 2008