HOW-TO : Transfer all your iTunes playlists from one computer to another
How-Tos March 9th, 2007Recently I had a task at hand while switching from one computer to another. I had to move all of my ~10GB of music from one computer to another ! That was not the “tough” part though ! The tough part was - How to maintain the ~310 playlists that I had set up ! I have no idea why I have those many playlists ! I guess I am a little over-organised at times
!
Anyways, here is the way I did it ! It was pretty simple eventually…
Step 1: Keep the iTunes folder organized
Let iTunes handle the organization of your music i.e. when you copy the file to iTunes, it will automatically create the folder for that particular song on your hard disk (in an organized way). To do go to Edit > Preferences. Select the “Advanced” tab and make sure the following options are selected
Step 2: De-authorize the iTunes on the old computer
To do this go to Advanced > Deauthorize Audible Account. This is helpful if you buy any songs from the iTunes online store. Since the iTunes music you buy has a maximum of 5 licenses, you can transfer it only to 5 machines at a time - however of you deauthorize then you can re-use that license.
Step 3: Copy all the music from one computer to another
Copy all the music you have from the source computer to the destination computer. If possible (and to ease the transfer) copy it to the same location in the destination computer. Since your music is all organised, all the music is under the folder specified in the “Advance” tab under Preferences. (See above image). In my case it is D:\music\itunes.
Step 4: Export your entire library
In iTunes (source omputer) go to File > Export Library and export the library to an xml file. The default filename is Libray.xml. This spits out all the playlist information, song ratings, path to the media file etc. to an xml file. Copy this file over to the destination computer
Step 5: Edit the Library.xml (if needed)
If you did not copy all your music (Step 3) to the same location in the destination computer as it was in the old computer then edit the Library.xml file and replace all the occurance of that location with the path of the new location. Eg. replace all “D:/music/itunes” to “C:/musiclibray”. You can do this using any word processor. I am a little geeky and I use gvim a lot - which makes search and replace just a simple command. If you want to use gvim to do the following then download, install and open the file Library.xml in gvim. Then use the command
:%s/D\:\/music\/itunes/C\:\/musiclibrary/g
to replace all the location occurance.
Step 6: Import the library in the destination computer
In iTunes, go to File > Import and select the Library.xml that you saved in Step 4. Voila ! all your music, playlists and ratings appear in your iTunes in the destination computer. To be able to play the music you bought from iTunes, you will have to authorize the computer the same way you deauthorized the computer in Step 2




August 17th, 2007 at 2:25 pm
Rohit:
My son is trying to transfer all his itunes library from the old laptop to the new PC. Some songs were transferred and others would not play. Something about the licenses. Have you seen this and can you provide any help?
Thanks,
Shane
August 19th, 2007 at 9:42 pm
I’m not sure if I understand letting iTunes organize my music. If I have ALL my music in the My Music folder, and the iTunes folder and info (the xml and itl) in the My Music folder, couldn’t I just copy that folder from one PC to the next without changing anything? It’d have all the same music, directories, and iTunes files…
August 20th, 2007 at 12:59 am
Shane :
Are these songs that your son bought over iTunes? You can do this….
1. De-authorize the old computer’s iTunes by selecting the Advanced > Deauthorize option in iTunes (old computer)
2. When you try to play the songs in the new computer, it will ask you for the same account information - user id and password that was used to purchase the song - enter this and you should be able to activate the music
Note please - you can deauthorize and unauthorize only about 5 times
August 20th, 2007 at 1:01 am
Tor :
Yes - but you still need to “import” them on the new installation of iTunes on your new PC. You are just re-importing them all in your new machine