Restoring play count & ratings
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I transferred my iTunes music to another computer, however it seems that iTunes has lost the ratings and play count numbers. My iPhone 3G, however, still has this info, from the last time it was synced on the other computer. There is also an XML file in the iTunes folder that has the ratings and play counts, but the file paths are from the old computer, and are no longer valid. Is there a way I can transfer the play count and ratings information, either from my iPhone or the XML file, into my iTunes library? I have heard that this can be done by copying the music from the iPhone, but I'd rather avoid it if at all possible, because I already have the music on the computer.
Any help is greatly appreciated!
16 replies
Sign in or join Beachball Help to reply.
- 0
hedgert ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I also transferred my music and iTunes library from one computer to a new one.
I searched high and low for information about ratings and play counts and while there was a manual trick for ratings, I couldn't find any means of updating all play counts in one go, so I ended up writing a program to do it - which I am happy to share if you email me (I'd attach the files to the forum but it doesn't appear to be possible to add attachments to a post).First ratings - manual, but easy. Go to your old iTunes machine, create 5 playlists - called e.g. rating1, rating2, rating3, rating4, rating5. Then sort your music by rating, select all 5* and right click add to playlist and choose rating5. Similarly to the other 4 rating levels. Then go to File->Library->Export Playlist... and export the 5 ratings playlists with suitable names - they end up as text files. Move the 5 text files to the new machine and File->Library->Import Playlist... Once the playlists are loaded, go into each one in turn, select all tracks and right click to set the rating level. All manual but pretty quick and easy to do.
Play counts are not so straightforward. The play counts are stored in an xml file in the same directory as your iTunes library. I have written a java program to read both old and new xml files and then to pull the play counts from the old xml file to the new one. However, iTunes doesn't read the xml file after you've made the changes, you have to force it to by renaming/deleting the iTunes library (binary) file (not the file with songs in, just data); then when you open iTunes it appears empty - but don't worry - go to File->Library->Import Playlist... again and this time import the xml file output by my program. After a few minutes of processing everything is back including the updated play counts. This link is to a post that talks about this process of rebuilding the iTunes library from the xml file:
http://www.makeuseof.com/tag/how-to-fix-repair-the-lost-link-to-the-itunes-music -library/There are two issues that I found with following this process, both to do with synching devices to iTunes. I have an iPhone and after synching the applications did not show up in iTunes. So to fix this I plugged in the phone waited for iTunes to detect it, then right clicked on the iPhone device in the left bar of iTunes and selected Transfer Purchases - this pulled the applications across from the iPhone to iTunes and then I was able to sync the iPhone completely.
Second issue was with my AppleTV, which simply didn't appear in iTunes despite on the AppleTV still showing connected to my Computer. My fix for this was to disconnect and then re-choose the computer on the AppleTV, enter the pass code in iTunes and re-connect it again. When AppleTV re-appears in iTunes, you have to input all the sync settings and let it sync again - which is a pain, but having put in the sync settings it just gets on with it - so it wasn't a problem apart from the time it took to re-sync.If after that explanation you would like to try my program send me an email and I'll happily send you the zip file containing it. You can contact me: tim AT hedger-gourlay.com
- 0
hedgert ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I also transferred my music and iTunes library from one computer to a new one.
I searched high and low for information about ratings and play counts and while there was a manual trick for ratings, I couldn't find any means of updating all play counts in one go, so I ended up writing a program to do it - which I am happy to share if you email me (I'd attach the files to the forum but it doesn't appear to be possible to add attachments to a post).First ratings - manual, but easy. Go to your old iTunes machine, create 5 playlists - called e.g. rating1, rating2, rating3, rating4, rating5. Then sort your music by rating, select all 5* and right click add to playlist and choose rating5. Similarly to the other 4 rating levels. Then go to File->Library->Export Playlist... and export the 5 ratings playlists with suitable names - they end up as text files. Move the 5 text files to the new machine and File->Library->Import Playlist... Once the playlists are loaded, go into each one in turn, select all tracks and right click to set the rating level. All manual but pretty quick and easy to do.
Play counts are not so straightforward. The play counts are stored in an xml file in the same directory as your iTunes library. I have written a java program to read both old and new xml files and then to pull the play counts from the old xml file to the new one. However, iTunes doesn't read the xml file after you've made the changes, you have to force it to by renaming/deleting the iTunes library (binary) file (not the file with songs in, just data); then when you open iTunes it appears empty - but don't worry - go to File->Library->Import Playlist... again and this time import the xml file output by my program. After a few minutes of processing everything is back including the updated play counts. This link is to a post that talks about this process of rebuilding the iTunes library from the xml file:
http://www.makeuseof.com/tag/how-to-fix-repair-the-lost-link-to-the-itunes-music -library/There are two issues that I found with following this process, both to do with synching devices to iTunes. I have an iPhone and after synching the applications did not show up in iTunes. So to fix this I plugged in the phone waited for iTunes to detect it, then right clicked on the iPhone device in the left bar of iTunes and selected Transfer Purchases - this pulled the applications across from the iPhone to iTunes and then I was able to sync the iPhone completely.
Second issue was with my AppleTV, which simply didn't appear in iTunes despite on the AppleTV still showing connected to my Computer. My fix for this was to disconnect and then re-choose the computer on the AppleTV, enter the pass code in iTunes and re-connect it again. When AppleTV re-appears in iTunes, you have to input all the sync settings and let it sync again - which is a pain, but having put in the sync settings it just gets on with it - so it wasn't a problem apart from the time it took to re-sync.If after that explanation you would like to try my program send me an email and I'll happily send you the zip file containing it. You can contact me: tim AT hedger-gourlay.com
- 0
Bizquik ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I recently switched from a PC to a Mac. What I did was move the folder with the iTunes library information to the Mac. Then on the Mac, when opening iTunes, I held down the 'command' key ('shift' key on a PC). This opens up a second library. It asks you which library you'd like to use. You then pick the one you just moved over from your other computer. The play counts and ratings should be there. Then, under preferences, you could choose the path to your music and you should be set. It shouldn't take more than 10 minutes, if that!
- 0
ScotteWilson ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Gil,
I read your posting with the title in the Subject line above. Thanks for that. Is your XML copy program still a good fix? I recently had catastrophic failure during upgrade to Leopard OS and had to restore from my Time Machine backup (back to OS 5.8). Everything worked perfectly, but all essentially all my ratings (about 6000) were lost, only retained about 50 ratings.
I am very confused why it would retain a small remnant of my ratings...Play counts would be nice to restore too.
My playlist export text files are outdated and have about half I could restore from. But I would like all of them if possible?Any advice?
Thanks so much
Scott
California, USA - 0
chenango232 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
On the new mac I deleted the file called iTunes Library.itl (I also deleted the Extra's, Genius, and xml file).
Copy your old .itl file over to the new mac and start itunes by double clicking.
Everything is there instantly.
If you hold down the [option] key it will ask you which library you want to use. However this method seems to work fine.
- 0
stoh ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I just tried this, got the ratings and playlists back, but now iTunes is unable to locate any of the actual files. I originally transferred over the files via home sharing. Did I do something wrong?
- 0
stoh ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Never mind, I realized that I had to point iTunes to the right folder. Fixed!
Thanks for the tips!
- 0
Helen C on apple ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Amazing, this post just saved me! I had lost half of my cover artwork and all my star ratings and times played data when transferring to my new mac. I then copied over the XML and ITL files, and this has restored pretty much eveything : ) Happy.
- 0
seelove ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
this is an awesome fix! i called the itunes support desk and they could not help me with retrieving my ratings, but this solved the problem with very little effort and time. thank you for posting this solution!
- 0
Morriz ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
But nobody answered the original question. Does anybody know how to transfer the ratings from an iphone, when that is the only rating source left?
- 0
mouneet ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This helped me. Thanks for sharing this information.
- 0
David Lefler ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
You can use a program like iExplorer to import the ratings back into your Mac. There may be other programs that do the same thing too.
- 0
Community User ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
hi,
I'm also trying to restore playcounts from an old itunes XML library.
By matching the track names can I import playcounts from old library?
Please help...
- 0
Limnos ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Um, I was under the impression the 3 differences between the .itl version and the .xml version of the library file was the .xml did not contain ratings, date added, or play count.
- 0
Burke102 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi folks! I just got a new Air and wanted my play counts transferred. Here's what I did and it was beyond simple:
1. New Mac: Dragged the .itl and .xml files to the trash but didn't empty in case I needed them.
2. Old Mac: Put those two files on a flash drive and dragged to the same itunes folder on the new mac where I deleted the two files in question.
3. New Mac: Started itunes.
Play counts all there instantly!
Thanks to everyone who chimed in here. I REALLY like having my play counts! hahaha
- 0
jkp88 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
After spending hours trying to figure this out, this was the best advice!