• http://www.uthstuph.com steve

    thanks man… makes the most sense of anything i’ve found thus far… still struggling to move my docs as well.

    i appreciate your help!

  • http://www.jakebouma.com Jake

    no problem, steve. what do you mean you’re struggling to move your documents?

  • lars

    thanks a lot, jake! i had tried using the same tutorial that you mentioned and was having problems, but i followed your updated one and it worked perfectly. such a relief to have the transfer all done with all my info intact.

  • http://www.jakebouma.com Jake

    lars: no problem. i’m glad everything worked out for you… i totally understand the feeling of relief upon seeing all of the info intact! thanks for stopping by.

  • Alex

    I’m preparing to do exactly this and have been searching for a handy guide. This stands out as the most thorough. Nice job. I haven’t done it yet, but a question that stands out is what to do with the Album Artwork folder? Will its contents be rebuilt when you open iTunes in Step 8 or do you just copy and paste from your PC? Thanks!

  • http://www.jakebouma.com Jake

    Alex: You don’t have to touch the album artwork folder, as far as I know. I believe the artwork for individual files are stored within the metadata of the audio file itself (but I could be wrong). I didn’t have to move anything, and almost all of my artwork transferred.

  • Chris

    “7. Manually corrupt the “iTunes Library” file.”
    No need for this.
    Put the edited iTunes Music library.xml file on the desktop.
    Delete the iTunes library file, open iTunes then File -> Import and select the iTunes library.xml file on the desktop.

  • WILL

    was wondering if you know anything about this, on a similar topic.

    ive transferred my itunes from one PC to a new PC. everything seems fine, but some of the artwork has not transferred.

    why is this, and how do i make sure ALL of the artwork is transferred across?

    many thanks

  • http://www.jakebouma.com Jake

    Chris: Is this what you did? Or just something you think will work? The manual I have in this post works fine.

    Will: I’m not sure why some of it is missing, either. It happened to me when I transferred my stuff; I would estimate about 5% of my album artwork didn’t transfer. For those songs without artwork, I just used the “Get album artwork from iTunes” option. Besides, I’d rather have to do that then lose all of my metadata. ;)

  • Chris

    Yes, this is something I have done.

  • WILL

    yes it is something i have done.

    i have approx 11,000 songs and over the years spent a lot of time getting the artwork.

    but it does appear that around 5% of my artwork is missing, strangely i now think it happens to be the same artwork that came from the ‘get album artwork’ option….

    so i agree, i think get album artwork will solve most of it.

    its just irritating – why cant i have everything on one computer exactly the same on another?! – ah well, u cant have everything

    thanks

  • nathan

    awesome job on this. i’ve been reading through many other articles related to this, but none of them would keep everything fully intact. i was putting off getting my new mac book pro for months because i didn’t know how i was going to transfer all my music, and now i feel silly i did that.

    let me tell you it was one big sigh of relief when itunes opened up and all the play counts were there. really ingenious of you to figure it out.

    thanks again.

  • http://www.jakebouma.com Jake

    nathan: Thanks, man. I let out a huge sigh of relief as well when the play counts transferred! Enjot your new MacBook Pro!

  • http://www.pobox.com/~schmolle/ Schmolle

    Hi Man,

    Thanks for adding this level of detail to my original tutorial (on SchmolleWorld). I never got past ‘take your favourite editor and do a careful search and replace’. :)

    Schmolle

  • http://www.jakebouma.com Jake

    Schmolle: My pleasure, man. I work best with visual examples, so I figured I might as well help others out with it.

  • Patty

    Thanks! You say, “If you don’t mind letting iTunes manage your music, there are easier ways to make the transfer.” I like easier — can you point me to one of these? I want to make sure I retain my playlists & playcounts after I transfer from PC to Mac, but I seem to be getting conflicting info on whether I need to edit the xml file if I consolidate & let iTunes manage my music.

  • Patty

    PS: I can’t use CDs/DVDs to transfer because my PC’s drive does not work, and I can’t use my iPod because it’s too small. I will be using an external drive.

  • ITunes Diva

    Hey there I hope someone can assist me. About a year ago my iTunes became corrupted. I could not listen to music or anything. I did call Apple for support and it never got resolved. I tried many times to uninstall reinstall etc. Finally I got tired and deleted everything except the itunes folder. I believe I deleted the iTunes Music Library.xml and the iTunes Library.itl. Ok so I just reinstalled iTunes with new music. I have been trying to import, move the folder replace the folder etc. Nothing has worked. I contacted Apple and they allowed me to re-download all of the music from before. However I can not move all of the other music into the iTunes. The most simple solution would be to get if from the iPod but I do not have it anymore. Additionally something happened to my orginal windows profile so I need to now move all of my docs pictures etc so I can whip the machine clean. How can I get the old folder of music back?

  • http://www.jakebouma.com Jake

    iTunes Diva: I’m not sure if I can help you, especially if Apple customer service hasn’t helped! Just keep scouring the internet!

  • NerdimusPrime

    I actually had two itunes library.xml files: one in my c:\music folder and one in the c:\music\itunes folder. I had to do some creative find/replace/copy/paste to reduce it to one file, but it all worked flawlessly, and I ended up with only 100 duplicates in a library of over 6500 items.

    Thanks a ton for this, it worked great!

  • Chip

    Thanks – this is great. I just got my first Mac and was able to move everything over almost perfectly. One question/problem though: my PC iTunes library has 5657 songs – my Mac iTunes library has 17 less – 5640. Any idea how that happened, or how I can easily ID what the missing 17 songs are?

  • http://www.pobox.com/~schmolle/ Schmolle

    @Alex (and others): the album artwork comes in two forms:

    1) Metadata within the files themselves.

    2) JPGs that iTunes downloads and keeps seperately from the MP3s.

    When you transfer files, obviously the metadata enclosed in the MP3 file will transfer along. At its destination, iTunes will recognise and display it.

    All the stuff that sits in the Album Artwork folder will have been left behind; it is those files that iTunes will download automatically.

    Now, how to prevent any issues? I reccommend turning off the auto-download option, which allows you to identify the music files that do not have enclosed album art. Find the album art for those files. You can do this either by using iTunes to find it for only that file, then picking it out of the album art folder and stuffing it into the metadata yourself, or by using an MP3 editor with album art finding capabilities. I personally really like Tag&Rename which does all that.

    An alternative might be to transfer the album art folder along. Dunno if and/or how well that works.

  • http://www.pobox.com/~schmolle/ Schmolle

    @Chris: you are right about the import functionality. This has been a feature that Apple has gradually expanded over the last few versions. These instructions/methods date back to well before that import functionality was usable; iirc at first, it would only import track names as if they were new files.

  • http://www.pobox.com/~schmolle/ Schmolle

    @Patty: if you are willing to go ‘the Apple way’ you get the benefit of being able to use their advice on the Apple forums. Look there for a solution that fits your situation.

  • http://www.pobox.com/~schmolle/ Schmolle

    @Chip: I reckon it is most likely that you had a few track in there that actually did not have files (anymore). They do not get past the initial filter that iTunes runs across a newly rebuilt Library.itl. In that sense, it is a roundabout way to get rid of broken tracks.. :)

    If you do want to know exactly, I would personally opt for an old XML file and the new one, than parsing them on a command line with grep, sed, sort and/or uniq. Shouldn’t be too difficult for anyone comfortable with UNIX (or the Terminal, as MacHeads tend to know it :) but it might take some time to run if your files are big.

    Something like:

    (cat old.xml new.xml) | sed -n ‘/^.*Name\(.*\)/\1/p’ | sort | uniq -u

    should give you names that appear only once in the combined set. Not the exact answer you are looking for, but it should narrow down the field considerably.

  • http://www.pobox.com/~schmolle/ Schmolle

    Oh, bugger. The forum software ate my command line. Contact me if you need particular assistance. (or refer to any entry level UNIX book)

  • SteveE

    I followed your procedure and found that about 1/3 of my music does not appear in iTunes on the Mac. It seems that in the XML from the PC the paths are truncated for long file names. So when the library rebuilds it doesn’t find the folders and/or songs that were truncated. Do you have any ideas on how to handle this?

  • SteveE

    To add some more, one song folder is called “The Future Starts Here_ The Essential Doors Hits”. One of the song files is “01 Break On Through (To The Other Side) [New Stereo Mix] (Advanced Resolution).mp3″

    In the line in the XML is:
    Locationfile:/localhost/Users/saedelstein/Music/iTunes/iTunes%20Music/The%20Doors/The%20Future%20Starts%20Here_%20The%20Essential%20Doors%20Hits/01%20Break%20On%20Through%20(To%20The%20Other%20Si.mp3

    The following text is cut off in the XML:
    de) [New Stereo Mix] (Advanced Resolution)

  • http://www.pobox.com/~schmolle/ Schmolle

    My best bet would be that your editor is at fault. What text editor did you use? If you try any other one, do you get the same results?

    Incidentally, you could create a ‘fresh’ XML file by deleting it and restarting iTunes (obviously with all the music files in their original locations). Once iTunes is closed again, there will have appeared a brand new XML file.

  • SteveE

    I used TextWrangler but I also tried the Mac’s Text Edit and the long filenames are truncated in both.

    I created a fresh XML as you suggested and the filenames are still truncated.

    I think the truncations is happening in iTunes because it’s not just the end of the filename that’s cut of. For example,
    the folder name is truncated in the middle of the path and the song name is truncated. But the extension .mp3 still appears.

  • SteveE

    I meant to say “I think the truncations is happening in iTunes ON THE WINDOWS SIDE.”

  • SteveE

    I did some more investigation and I think I know what’s going on but I have no idea how to deal with it.

    When I started out I copied all my music from the PC to the Mac via my home network.

    1. On the PC an example folder name is “The Future Starts Here_ The Essential Do” and a song is “01 Break On Through (To The Other Si.mp3″

    2. Now I’m noticing that on the Mac the folder name is “The Future Starts Here_ The Essential Doors Hits” and the song name is “01 Break On Through (To The Other Side) [New Stereo Mix] (Advanced Resolution).mp3″

    Somehow the folder name and song names got changed from what they were after the original copy to what they are now. Note: I just did a test copy and immediately afterwords the folder name and song name are the short names in #1. Apparently, at some point after the original copy the folder names and song names got changed, I assume it must have been by iTunes.

    Now, I think the XML is reflecting the renamed names. But because some of them are so long my guess is that iTunes is then truncating them in the XML so that they don’t match the actual file names.

    Does this make sense? If so, any ideas on how to deal with the situation so that the folder names and song names don’t get changed? I can recopy all the music but I’m concerned it will be a waste of time because they same thing will happen again.

  • consumer_q

    Hello

    A nice tutorial except that album art *is lost* for all song files that a user used the Get Album Artwork feature in iTunes. The only artwork that is carried over is that which is embedded within the metadata by the user, and the artwork that was embedded within a purchased iTunes Store file. This is a rather major flaw in the design of iTunes if you happen to have thousands of songs that were tagged ‘correctly’ after initially using the Get Album Artwork command. Basically, if you used the Get Album Artwork feature and move your Library (or revitalize from a backup), you lose the artwork, This makes no sense because it is still in the same folder and should reference properly.

    cheers!

    • http://www.jakebouma.com Jake Bouma

      Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

    • http://www.jakebouma.com Jake Bouma

      Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

    • http://www.jakebouma.com Jake Bouma

      Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

    • http://www.jakebouma.com Jake Bouma

      Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

    • http://www.jakebouma.com Jake Bouma

      Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

  • http://www.jakebouma.com Jake Bouma

    Thanks for the heads up, consumer_q. It's still not as bad as losing everything though!

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • Daniel

    I'm REALLY grateful for this. Thank you for taking the time to lay it out so clearly. My wife has been ready to strangle me because I've been at this for a good week. I tried a million other tutorials, but I've come up empty with each one. As a teacher, I have a big appreciation for clear explanations, and this was indeed very clear. Thank you immensely.

  • http://intensedebate.com/people/jakebouma Jake Bouma

    No problem, Daniel. I wrote it because it's the tutorial I would have wanted when I was doing it.

  • http://intensedebate.com/people/jakebouma Jake Bouma

    No problem, Andrew. I hope that eventually Apple makes it easier to do this… I agree that having to manually corrupt a file is a bit sketchy. But at least it works!

  • http://www.andrewofnagy.net Andrew

    Thanks a ton for this. I've done this with versions of iTunes before 8 and it was much simpler (yet still not simple enough). I, too have about 3k songs and have been maintaining the database for over 3 years and I can't describe how great it is to make playlists based on those factors. For instance I have one that plays four or five rated songs which haven't been played in the last ten days. That's awesome for me so I get a good sampling of my tunes. Your tutorial ensures I can keep doing that. :)

    Apple does a lot of stuff right, but you should never have to manually corrupt a file in order to get intuitive functionality.

  • Miss. Marie

    So what happens if I want to follow your tutorial but I don't want to stop iTunes from managing my music? My friend and I have been trying to get my iTunes into my Mac and we have re-done it at least 4 times now. Each time it's something different. Either no playlists and ratings, music missing or the file cannot be found. Any ideas?

  • Alessandro

    Thank you. It worked perfectly for me!!! I had only to download the album art again.
    Thank you very much
    Alessandro

  • http://intensedebate.com/people/jakebouma Jake Bouma

    I'm glad it helped!

  • Jason

    Awesome took like 20 minutes total saved me a TON of frustration and hard work. I have 242 playlists with 5000 songs!

  • http://intensedebate.com/people/jakebouma Jake Bouma

    Nice!

  • LFW

    This didn't work for me— but it could be my mistake somewhere along the line. One tweak: on number 7, I had TextWrangler wouldn't open the "iTunes Library" file, so I had to ask the "Finder" application to find the file, then clicked "Open" on the "ITunes Library" file and selected the "TextWrangler" application.

  • Smidy

    Everything worked but for one thing. It did not transfer my ringtones I created on the PC iTunes. Does DRM have anything to do with that? Will I have to create and buy them again?
    Thanks Jake.