restoring play count from library.xml?
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
OK, i just reformatted my hard drive, and not sure i backed up everything correctly. All my music is there, but there is no play count/date added/playlists. I am ok with this, but i opened the iTunes Music Library xml file just for fun, and i noticed in the xml the playcount integer was there along with the date added. Is there a way to "import" this xml file so the playcounts show up? date added etc?Its more just for fun, but itd be nice to have. Playlists would be a bonus too, but not critical. I didtn think any of this was possible until i saw this xml file...
Thanks!
15 replies
Sign in or join Beachball Help to reply.
- 0
Katrina S. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
These directions will explain how:
http://support.apple.com/kb/HT1451 - 0
Buegie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Import the XML file as the Article that Katrina provided detailed.
Almost all metadata attributes will be re-created. You will also have your Playlists as well.
The only attribute that I have found to be missing is "Date Added". While the information is written and stored in the XML file, it appears that iTunes dies not read/import that datapoint -- at least up through version 8.0. I have not tested the newest version of iTunes (8.1).
- 0
vikfan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
OK, thanks this worked....BUT...i did something stupid while waiting for a response. I copied the whole Itunes music file back to my hard drive, pointed itunes to that folder, ran through the whole deal. Decided that i wanted to still run it off E (my external drive). Deleted my files off C, pointed it back to E:My MusiciTunes, but now it wont load any songs. If i play a song manually through the E drive, they show up, but i cant get them all to load automatically. even uninstalled and reinstalled itunes.....yikes? help?
- 0
vikfan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
ok, another update (sorry). dragged the folder into itunes, music is there. Importing this XML file did bring back the playlists, but did not bring back play counts, date added, etc. Just the playlists. Which isnt all bad, but i did like the date added and play counts. Did i do something wrong, or is this just not coming back? Its weird because you can see that the data is there in teh xml file when you pen it.....
- 0
Katrina S. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you want Date Added, see if you can get if from an ITL that itunes made during the upgrade.
Look for a folder named Previous iTunes Libraries. There should be files in there from every time you upgraded iTunes. Such as,
iTunes Library 2009-03-12.itlMake a copy of it and put it somewhere, like on your desktop. Rename it
iTunesTest.itlPress *and hold* the shift key while starting iTunes. When prompted, choose "Existing Library" and browse to that iTunesTest.itl file.
Does it show play counts and Date Added?
- 0
vikfan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
unfortunately i dont have any previous libraries from recent upgrades, as i just reformatted my hard drive. so im not really upgrading it. the most recent library in the previous library folder is 10-03-2008. i worry that might mess things up to use that as the existing library?
- 0
Buegie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If I'm correctly following your process so far, you have moved the folders from where the XML expects them. You may need to globally edit the XML file with the correct path (drive letter and path). Then re-import the XML file.
I believe that this will work for you.
Then make sure you start making and archiving
Complete iTunes Backups - 0
Katrina S. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Yeah,that one is probably too old.
- 0
GARTH ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
That is one feature I cannot live without and rely on mostly these days is the "Date Added" attribute. The new "Date Added" date would be the same for every file you import that day you move the library back. I do not like this idea. Is there a way to fix this guys?
Thanks
Happy St. Patrick's Day!
Garth - 0
Buegie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
GARTH,
While I understand your perceived need for this attribute, I have not seen a method to recover the 'Date Added' value. Perhaps there is a JavaScript available from another. If I happen across this facility, I'll include it in my recovery instructions, but I do not go looking for something not critically required (see my reason below).
This begs the question of many Library problems I see here: If your music Library is so important to you (and why shouldn't it be), you need to
proactively guard against the typical and expected failures of digital life.This means *+frequent and complete backups+* of your data - including your entire iTunes Library. Failure to plan means you are planning to fail.
See what you need to do to
Completely Backup iTunes.Do anything less and we'll try to help you recover, but one cannot expect Apple or those of us here to save you from every self-inflicted problem. We do, however, get many of them happily resolved.
- 0
Katrina S. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Not using the XML file. You have to have a valid backup of the ITL file.
I tried it in itunes 8.1 - no change. - 0
GARTH ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hey why do I need all those "Previous iTunes Libraries" that are stored in it's respective folder? There are at least five names after their dates.
Can anyone answer this?
Thanks
Garth - 0
Katrina S. ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
iTunes puts them there during an upgrade to a new version. The names show the date you upgraded itunes, such as
iTunes Library 2009-03-12.itl
means March 12, 2009.You don't need ALL of them, but the most recent copy has saved many a person's corrupt library.
- 0
Buegie ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
"+but the most recent copy has saved many a person's corrupt library+"
It is really dependent on how recent the copy is. If the user has a 2-day, 2-week, 2-month, or older update copy, the changes made to the Library since the last update will not be reflected in it. The older the file is, the less current your recovered Library will be.
I cannot understand why (once illuminated) anyone would not make and save a copy of the ITL file every time they significantly change their Library.
FYI: 'Significantly' is defined by the amount of re-work one does not wish to repeat in case of a problem.
- 0
GARTH ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
What "Changes Made" to the library are you speaking about?
The songs will not be there? Or changes in the library such as having created a playlist or more worst?
Thanks
Garth


