« Mail keyboard tips... | Main | iPhone NDA Lifted (soon, sort of...) »

Rebuilding your iTunes 8 Library

Like many people I've been building my iTunes collection over many years, in fact since before iTunes was born, back in the good old days of Sound Jam and other venerable MP3 players.

Also like most of you I've come to realise that to a certain degree the range of meta-data that has accumulated in my iTunes library is worth a lot of my time - so it comes as a nasty shock when you first realise you may have lost all of that wonderful meta-data.

Already I can hear you saying why didn't you have a back - well I do (and in the end it worked). In my case the problem was a corrupt library file, no problem thought I there's a simple way to rebuild this information (see this Apple TechNote). Note that amongst other things this TechNote refers to an old name for the XML backup iTunes keeps of your music library database - it's now called iTunes Library.xml not as stated "iTunes Music Library.xml"

Apart from the fact that iTunes keeps a nice XML copy of your library's database for you - I also have daily copies that I can recover from - so I'm good right?

So, being smug, I fired up iTunes told it to create a new library and following Step 7 from the TechNote I selected File-> Import, except for one small thing - iTunes 8 doesn't have an Import option under the File menu!

A quick hunt around came up with an oddly named "Import Playlist" option in a sub-menu of the File menu:

iTunes Library Submenu

Along with a few other options which I'll look at in another post. Now this at first glance doesn't seem very helpful and according to the iTunes 8 Help not what I was looking for:

You can export a playlist and import it on a different computer so that you can have the same playlist in both places. You can also export a playlist to save a copy of it. Exported playlists contain a list of the items in the playlist; the actual songs or videos aren't included.

Looking around with iTunes 8 about 24 hours old I didn't have much luck, so, having nothing to loose I pointed the "Import Playlist…" at the "iTunes Library.xml" and nothing happened... well nothing good I ended up with about 200 invalid Smart Playlist's. Hmmm... back to scratch.

At this point I thought maybe the XML file was corrupt so I stepped back to an earlier version, and.... got basically the same result.

Next I decided to investigate the XML file using Apple's Property List Editor (included with XCode which can be found on your OS X install disks), normally double clicking the file would open Property List Editor (PLE) on my computer however it launched Microsoft's Open XML Converter instead. This lead me to notice that the file was actually showing a generic text icon in the Finder - I dragged it onto PLE and saved it without making any changes. Now I was back to the more familiar blank icon. Then, back to iTunes 8 and this time it worked.

Don't ask me what it did all I know is that it worked (I suspect PLE either fixed some malformed XML or simply wrote the file out in a valid format that iTunes 8 now uses). If this helps you at all my work is done!

TrackBack

TrackBack URL for this entry:
http://www.lensenergy.com/cgi-bin/mt/mt-tb.cgi/92

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

December 2008

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Creative Commons License
This weblog is licensed under a Creative Commons License.

 

 

website by craigphillips.biz