Find & Recover correct iTunes ratings etc. & Library from Time Machine
http://macs.about.com/od/itunes/tp/Restore-Your-Itunes-Music-Library-By-Copying-The-Music-From-Your-Ipod.htm

I know this isn't the answer you are looking for, but maybe it will help.