Tell me if there's a better way to go about this...
I've put together a little code already to pull genre's from two sources; iTunes and Last.fm. I can merge the results together and keep the most popular two (or three or whatever) - this part hasn't been done yet.
Initially, I dumped out my song list to a file, and wrote something to read that file and query the iTunes API for each artist/song. I wrote the results to an output file where I produced the following:
The idea being, I could then use MP3Tag (or some other tool) to read that file, match on PathFilename, and determine whether to use NewGenre, keep the original (Genre), or somehow blend the two.
I'm aware of Convert->TextFile to Tag, and considered using that to accomplish this, but before spending much more time on this, I wanted to hear what other ideas people had.
The key points here are:
- iTunes doesn't have every song
- Last.fm doesn't have every song
- I'd like to do this at an artist/track level, not an artist level
- Some "filtering" will need to be done, as Last.fm sometimes provides an artists name as a genre