Itunes-bot is a project mainly written in Ruby, it's free.
A script which tidies my iTunes database
404: Not Found