Import iTunes library into clean installation of Catalina

Hullo all, hope you can help:


  • I backed up my iTunes library (the entire "iTunes" folder—contains about 95GB of music ripped from my CDs) on an external hard disk.
  • I installed Catalina on a newly reformatted hard disk on my iMac.
  • I copied the backed up iTunes library into ~/Music (Home folder → Music).
  • I launched the Music app. It showed my handful of iTunes purchases, but not my playlists nor the music I had ripped from CDs. 🤔


Clearly, my iTunes library was not upgraded at that point. The Music app was just seeing the music associated with my iCloud account. Second try:


  • I quit and I deleted the new "Music" folder that was created (~/Music/Music).
  • I launched the Music app holding down option. It asked me the choose a music Library and pointed it to the "iTunes Library.itl" file (~/Music/iTunes/iTunes Library.itl).
  • The Music app launched. Again, only my iTunes purchases appeared, no playlists. 😢


Any idea how I can get the Music app to upgrade and see my older iTunes music library? There are plenty of playlists, ratings, play counts, album artwork from rare CDs that I scanned myself, even some digitised vinyl. This process has worked with previous OS updates, so I would expect my backed up iTunes library should somehow be able to be imported.


Any thoughts?

iMac Line (2012 and Later)

Posted on Oct 14, 2019 1:29 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 13, 2019 1:31 AM

For anyone who still has this issue, I have a partial solution.


In the Music app, go to File → Library → Import Playlist… then navigate to your old iTunes folder and select the iTunes Music Library.xml file. Music will take a while (maybe half an hour, maybe one hour for my library of about 15,000 tracks—I went for lunch), but it will import all your music and playlists, including smart playlists. At least it did in my case after every other method had failed. Ratings and most other metadata was imported as well.


⚠️ Be careful—this is not a perfect solution:

  • It changes the “date added” information for every track to the time when you do the import. This may have implications to you if you are using that date to make smart playlists.
  • In my case it lost some of the artwork. From what I can tell, all of the artwork that I had scanned and pasted myself is present. My guess is that the lost artwork came from the iTunes Store by me selecting “get album artwork” in the past.
  • This method will also import any podcasts as songs. You can sort your music by genre to easily select and delete all the podcasts. Then sort by duration and scan everything that has “continuous” as duration. This will include old radio channels and podcast subscriptions as far as I can tell. You may need to delete those as well. You should be able to redownload those from the Podcasts app.


Hopefully, this is helpful to someone. It's a good enough solution for me for the moment.


(@turingtest2 You may need to include some of this in one of your guides.)

Similar questions

93 replies

Nov 24, 2019 10:59 PM in response to MattB89

Hey Matt , thanks for sharing! This sounds interesting!


I looked for the folder and it appears that I actually have it thrice on my macbook.


~/Music/Automatically Add to Music

~/Music/iTunes/iTunes Music/Automatically Add to Music

~/Music/iTunes/iTunes Media/Automatically Add to Music


This looks a bit different from your setup and I am wondering now which folder I should move my "entire media library"? And, what exactly do you mean by "entire media library"? Would this be just the music contained in ~/iTunes Media folder or the whole old iTunes folder, i.e. including the library files?


Happy to discuss!

Nov 26, 2019 6:43 AM in response to turingtest2

oh my I deleted this old xml file because I had my 'library' on my Synology-NAS. That had an app called ITunes server and all songs were in iTunes on my computer.

Because of this, and the fact that the file was very old I deleted it some time ago. Why can't I just simply import the whole bunch?

Well it seems a good time to say goodbye to the Apple music app.

Dec 5, 2019 8:36 PM in response to Orestes Chouchoulas

Many thanks! This worked! I struggled in so many, many ways to get my playlists to load, trying a lot of other suggestions off the web. And this finally worked!


One little detail that may help others, and that wasn't immediately clear to me from the above: First you have to go into your old iTunes (in my case, on another laptop), and go to File > Library > Export Library. I put that on my iCloud, and then went in to Music and followed the instructions above. (The file that iTunes exported was simply called Library.xml in my case.)


This saved me so much work. Thanks again!

Jan 8, 2020 10:53 AM in response to Orestes Chouchoulas

Had the same problem, but finally resolved with Apple Tech Support.    The key was in how you open the MUSIC app.    Hold down the OPTION key while opening the MUSIC app.    You will see a dialog box.   Pick the option "Choose Library".     Now, navigate to your ITL file (not XML) for the old iTunes database you want to import and double click it.  The MUSIC app will then ask you to Save this as a new Music Library.  Give it a different name than your other library(s).    Pick a location etc.    Once that is done, you still have one final step - to change the default directory of your actual music files.  Go to MUSIC preferences, select Files directory, and change it to where your actual audio files are.    MUSIC app will then ask you to organize, click YES.   This took 2 hours to do on my iTunes database (153,263 songs, library size 8.4 TB).   I was originally on Sierra 10.12.6 using iTunes 12.8.2.3.

Jan 8, 2020 2:05 PM in response to Snowdog212

Thank you Snowdog212 for sharing what worked for you. VERY glad you saved your music! I'm not super pleased with Apple Music changing my file types but I too did they fix you did and managed to get a lot of my music. The rest (about 1900) I manually re-downloaded as quite a few were songs I've recorded in Logic that had disappeared. Wow what a strange experience!


~Oldfiz

"backup, backup, save save"

Jan 9, 2020 1:22 AM in response to Brodster

So, my next course of action is to copy my iTunes library to a Mac running a previous version of macOS and then do any upgrade to Catalina. With any luck, after install I'll have a copy of my iTunes music migrated to the new Music app folder structure. From there, I can copy the files to my own Mac. Cumbersome, no doubt, but as of now I see it as the only potential way to do a true migration of my library.

I tried that, but it had no effect in my case. The migration is supposed to happen seamlessly when upgrading, but clearly some libraries stump the process.

Feb 11, 2020 1:55 AM in response to Orestes Chouchoulas

Hi all,


Thanks for all the given solutions, i just upgraded to Catalina and ran into the same problems discussed here.

I will soon implement the solutions, but i also discovered another issue and i wonder if you experience this too, but maybe this wil work after implementing the solutions you given.

The "help" of Music app says you can simply drag and drop new music files into the opened windows of the music app, but when i drag a music file from my desktop to the opened music app, nothing happens, you can see the file is returning to the desktop.

So it seems that drag and drop of music files is also not working?



Feb 13, 2020 12:06 PM in response to unusualroutine

This confuses me, though.

Doesn’t it mean you doubled all your music files twice?

First by creating a new library (as described in your solution path further above under 4./5.: “… will take some time …”), second by dropping the “iTunes Media” folder onto the Music Mediathek on the app’s GUI (as shown in your picture above: “… which took quite some time …”)?

Feb 13, 2020 11:49 PM in response to unusualroutine

Thanks, unusualroutine.

This is expansive and well documented.

Two comments:


1) According to your screenshot at step 1 you didn’t move the complete iTunes folder to the Music Folder but NEXT TO the Music folder. It shows clearly that „iTunes“ and „Music“ appear on the same hierarchy.

All other steps afterwards seem clear to me.


2) Your process of “melting” the libraries by dragging the iTunes Media folder onto the Musik GUI “Mediathek” (not the iTunes GUI, as you’ve mistyped ;) …) is a really weird idea (did you find out yourself?) but if it works – well then, I’ll give it a try.

Since my library is almost 500 GB big (and stored externally, too, for a while but this sucks) my steps of migrating my music lib should be well-thought …


Thanks again!

Feb 14, 2020 4:57 AM in response to unusualroutine

Alright, alright.

Seems to work properly — except that I probably won’t be able to double my library on my SSD. I will just run out of space, I guess? At least if there’s happening a real duplication — which I can’t verify yet since there is no new media/music folder been created in “Music” (or elsewhere in the folder “Musik” above of it).

Do you remember how long it took for your 300 GB lib, this activity “Dateien hinzufügen” (adding files) after dropping the iTunes Media folder onto “Musik”s “Mediathek” in the sidebar?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Import iTunes library into clean installation of Catalina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.