transfer library to Apple music

Hi everyone, Hoping I can ask for some advice on Music on a mac mini.


I recently upgraded from an iMac 2015 Retina to an Apple Mini M1.

The new setup had a 500Gb drive in the mini itself and a 2TB drive in a

dedicated hub.


From many sad experiences in the past I began with a full backup of the old machine

onto an external HD.


I started with the Apple website for advice and they advised update the OS on the old machine

and then proceed to the Migration Assistant phase.


I did this (Monterey), and it 'mostly' went fine.


My problem was my music. I had been using Mojave and iTunes on the iMac.


Sadly it dawned on me that iTunes was no longer to be found!

I read up on how to transfer to Apple Music.


Even using best advice, I just can't get it to work.


What I did was to copy the music (iTunes) back up folder from my external HD to

the SSD on the Mini's hub.


Then I opened Music using the Option key to choose a library and navigated to

the hub where I selected the Library.itl file and selected it, making sure to "save as

Music" suggested by the app, also to the hub.


What I got was a spinning wheel saying "Loading" and no progress bar or any sign

it's working.


I'm moving about 10,000 tracks, so if it's working but just taking a long time, that's fine,

but I'm worried I'm just pointlessly sitting here!


Any hints or advice very gratefully accepted.


Kind wishes to all


Jim

Posted on Aug 15, 2022 9:33 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 21, 2022 7:17 PM

Hi Jim,


Here's where it get weird!

The actual path to the song is:
/Jim Passpor/Music//Bruce Springsteen/The River, Disc 2/2-08 Drive All Night.m4a

but Music shows the track in"get info" as:
/Jim Passpor/Music/Music/Media/Music/Bruce Springsteen/The River, Disc 2/2-08 Drive All Night.m4a


That's certainly weird, unless Music made a copy of the fle second path as you imported it, which would be the default behaviour if the media folder is set to /Jim Passpor/Music/Music/Media[.localized] and the Copy Files preference is enabled.


I would be tempted to rearrange things so that your artist folders end up in /Jim Passpor/Music/Music/Media/Music, then use a global search and replace operation on the XML file to change file:///Users/Jim/Music/iTunes/iTunes%20Media/ to file:///Volumes/Jim%20Passpor/Music/Music/Media.localized/ then save the edited file with a new name (in case you need to retrace your steps) before importing the XML file.


TBH if I were doing this myself I'd probably want to get rid of the doubly nested /Music/Music/ folder, which should be question of moving whatever is currently inside /Jim Passpor/Music/Music up one level, deleting the now empty terminal /Music folder, and then adjusting the instructions in the paragraph above using /Music/ instead of /Music/Music/.


tt2

Similar questions

23 replies
Question marked as Top-ranking reply

Aug 21, 2022 7:17 PM in response to rf4c

Hi Jim,


Here's where it get weird!

The actual path to the song is:
/Jim Passpor/Music//Bruce Springsteen/The River, Disc 2/2-08 Drive All Night.m4a

but Music shows the track in"get info" as:
/Jim Passpor/Music/Music/Media/Music/Bruce Springsteen/The River, Disc 2/2-08 Drive All Night.m4a


That's certainly weird, unless Music made a copy of the fle second path as you imported it, which would be the default behaviour if the media folder is set to /Jim Passpor/Music/Music/Media[.localized] and the Copy Files preference is enabled.


I would be tempted to rearrange things so that your artist folders end up in /Jim Passpor/Music/Music/Media/Music, then use a global search and replace operation on the XML file to change file:///Users/Jim/Music/iTunes/iTunes%20Media/ to file:///Volumes/Jim%20Passpor/Music/Music/Media.localized/ then save the edited file with a new name (in case you need to retrace your steps) before importing the XML file.


TBH if I were doing this myself I'd probably want to get rid of the doubly nested /Music/Music/ folder, which should be question of moving whatever is currently inside /Jim Passpor/Music/Music up one level, deleting the now empty terminal /Music folder, and then adjusting the instructions in the paragraph above using /Music/ instead of /Music/Music/.


tt2

Aug 16, 2022 11:26 AM in response to rf4c

An alternative approach if Music isn't able to convert the .itl file might be to export the library as an XML file from iTunes, copy over the XML file, edit if needed to accommodate any path changes, then import the XML into an empty Music library. Tracks will show the current date for date added, but otherwise this should result in an identical library to the one in iTunes.


tt2

Aug 18, 2022 10:42 AM in response to totallyrandom

Hi.


The .localized bit suggests that the displayed name of the folder might be different in different regions. The extension would normally be hidden in Finder so you're not aware of it. You should continue to use the long form name in your XML if that is the real name of the folder. You can check using this advice; Show or hide filename extensions on Mac - Apple Support.


This line of XML is incomplete:


<string>file:///Users/liubarbaro/SynologyDrive/brett/Music/Music/Media.localized/Beenie%20Man/Tropical%20Storm/Bad%20


From context it should continue:


<string>file:///Users/liubarbaro/SynologyDrive/brett/Music/Music/Media.localized/Beenie%20Man/Tropical%20Storm/Bad%20Girl.mp3</string>


Is the forum software clipping it (we'll soon find out) or did you miss out the rest of it due to wrapping from wherever you copied it?


The file:///Users/ users bit at the beginning would suggest local storage in the user's profile folder rather than a network location.

You cannot use ~ as a shortcut in the XML file.

Spaces in the path are replaced with %20 in the XML.


Make a new test library and add in one track from its current location on the NAS, export the library as an XML file. then inspect the generated XML. My guess is that you should see a path like:


<string>file:///SynologyDrive/brett/Music/Music/Media.localized/Beenie%20Man/Tropical%20Storm/Bad%20Girl.mp3</string>


(but perhaps with only two slashes at the beginning?)



The file tab in get info should show the current location for a track that plays. The file:// syntax is used when the track isn't where it is expected to be. What is displayed should be the last known location, although it may be tweaked slightly if/when the media folder location is changed or as a result of the media folder layout preference (whether or not there is an additional subfolder called Music in the media folder).



tt2



Aug 18, 2022 4:28 PM in response to totallyrandom

I got it to work!!!


Fixed the paths in the xml file and used "Import Playlist...", and it worked on my old library xml file!! :) :) :)


Thank you SO much for your help with this. I haven't combed through it yet, but I can at least see that my play count and ratings seem to be intact. This is a HUGE weight off my shoulders. I will explore it a bit and let you know if anything remarkable shows up. But THANKS!!!!!!!!!!!


Sincerely,

B

Sep 17, 2022 8:40 AM in response to turingtest2

Hi tt2!

I've come back after a long silence! My work was reaching critical states, so I had to break off for a while, but I re-read your advice and tried again. I've no doubt I made errors along the way and made the mess even worse!


I tried doing searches for the same problem, but maybe describing it differently (desperation I guess)! But it worked!

It brought me back to one of your earlier posts to another member where you suggested tying a programme called "Retroactive" to revive iTunes. I tried this and it worked perfectly!


I did all this on my old machine, but as I was moving to a new mac mini, I needed to try copying the iTunes installation across to the Mini and then try to move everything into Music (watching carefully for accurate paths!).


Everything worked perfectly. Although a quirky, roundabout way to solve it, I got there.


I have no doubt that without your advice, I'd never have made it! Many many many thanks once again!

Very kind wishes


Jim

Aug 17, 2022 7:25 PM in response to rf4c

Ask away. This is my hobby. Cheaper than golf!


One would typically expect to find an Tunes music file at <some path>/iTunes/iTunes Media/<AlbumArtist>/<Album>/[D-]## <Name>.<Ext>. Depending on what is done in the way of copying files to different drives or locations they are ether going to be in the same location on the new computer, or for example at <some other path>/iTunes/iTunes Media/<AlbumArtist>/<Album>/[D-]## <Name>.<Ext>. Or you might also swap /iTunes/iTunes Media/ for /Music/Media. If the path changes then you need to perform a search and replace on the XML, otherwise you can use it as it is. If you do a search and replace you must make sure the new paths are properly formed and correspond to the new locations, or the whole thing will break.


tt2

Aug 16, 2022 9:46 AM in response to turingtest2

Hi there,

I just wanted to thank you for your advice in the above matter. The article you linked me to yielded

substantial progress.

I've now managed to get Apple Music to load up my full music collection,

but just the raw music files.


I still can't manage to get the .itl file to restore the star ratings and playlists,

I tried to choose it from the backup disk, but Music gave no response at all.

I also tried taking a direct copy of the original machine, but again no response.


The other very odd thing is that before each attempt at the various solutions I tried, I was obliged to

"force quit" Music. The programme itself would close, but the little black dot under the icon showed it was still active

until I forced it.


If the above comments trigger some thoughts you could share I'd be vary grateful, but please don't worry

about it. I feel embarrassed monopolizing your time! I'm grateful to I have the music files even if I have

to start the playlist assemblies and ratings all over.


Thanks again for your help along this journey,

kind wishes

Jim

Aug 16, 2022 2:01 PM in response to turingtest2

Hello again,


I don't have the words to thank you.

Your advice has been a huge success! Many many many thanks!

You've saved me from hours of work I can ill afford to use.

You're a huge asset to this community, and I'm deeply grateful.

Time is so precious and you've given so much of it.


Many thanks again and sincere kind wishes,


Jim

Aug 17, 2022 2:19 PM in response to turingtest2

Hi! New to this conversation, but very similar situation. I had been using a 2015 MacBook Pro retina 15" with OS X 10.11.6. I've been collecting and curating my 20000 mp3s since 2003, and so it is extremely important to me to retain the information I have input. I last saved my iTunes library in 2020, and exported it as an XML at the same time. I did a clean install of everything on my new M1 mini - did not use Migration Assistant. All my data is stored on a NAS. Now I can't get "Music" to import my itl file (just spins) or my xml file (does nothing).


I wanted to let you know I tried the XML thing and it didn't work. However, I'm not sure what you mean by "edit if needed to accommodate any path changes". Could you expand on that?


Thanks,

B

Aug 17, 2022 2:30 PM in response to totallyrandom

Hi there,

It was actually the member called"turingtest2" who gave the advice.

I'm not really the person to ask, I'm still teasing my way through it!

I thought I had it cracked, but I find

a) It partially worked on the original machine - I got the playlists back but not the star ratings, which are important as I haven't finished my compilations yet! and


b) It hasn't worked at all on my new machine. I copied the xml over from the original to the new and opened the xml with test edit and used the "Find / Replace" function to enter the new path to the music app, but something's not right.

I don't know if my edit method is wrong or there is some difficulty with the Music app being in the main drive, while the music data is on an external drive (no room on the main). I didn't want to annoy the guy who contributed so much, so I'm trying to find more info elsewhere before annoying him again!


Whatever I find I'll post, and please do the same!


Best of luck!!

Aug 18, 2022 10:10 AM in response to turingtest2

Hi tt2 -


First off, I'd like to join my colleague in thanking you profusely for your help with this! You are very clear and knowledgeable. Nice hobby! I hope it brings you satisfaction.


Still having trouble - I've been reformatting my xml file, but to no avail. (BTW - I have 32116 songs in my library.)


For example, let's look at the first track in my XML file.


This is the path to the file (obtained by selecting the file, <command>-i, copying/pasting the path from the info window, then adding the track name):

/Users/liubarbaro/SynologyDrive/brett/Music/Music/Media.localized/Beenie Man/Tropical Storm/Bad Girl.mp3


Here is the corresponding line that I have updated in my XML file:

<key>Location</key><string>file:///Users/liubarbaro/SynologyDrive/brett/Music/Music/Media.localized/Beenie%20Man/Tropical%20Storm/Bad%20Girl.mp3</string>


I have also tried deleting the "file://" portion in the xml, replacing it with a "~", using just "Media" instead of "Media.localized" (what's with the ".localized" anyway?), and a few other things.


Every time I try to import the xml file, I navigate to it, double click it, and the window just disappears and nothing else happens. Any ideas? Thanks!



For reference, here is the beginning of the xml file, including this track:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Major Version</key><integer>1</integer>

<key>Minor Version</key><integer>1</integer>

<key>Application Version</key><string>12.8.2.3</string>

<key>Date</key><date>2020-05-30T21:35:09Z</date>

<key>Features</key><integer>5</integer>

<key>Library Persistent ID</key><string>74920C38D5F6BEFD</string>

<key>Tracks</key>

<dict>

<key>14233</key>

<dict>

<key>Track ID</key><integer>14233</integer>

<key>Size</key><integer>3745459</integer>

<key>Total Time</key><integer>234057</integer>

<key>Year</key><integer>2002</integer>

<key>Date Modified</key><date>2007-07-22T01:58:12Z</date>

<key>Date Added</key><date>2007-07-05T03:00:04Z</date>

<key>Bit Rate</key><integer>128</integer>

<key>Sample Rate</key><integer>44100</integer>

<key>Play Count</key><integer>2</integer>

<key>Play Date</key><integer>3478699764</integer>

<key>Play Date UTC</key><date>2014-03-27T00:29:24Z</date>

<key>Persistent ID</key><string>B85FC9C3E8989618</string>

<key>Track Type</key><string>File</string>

<key>File Folder Count</key><integer>4</integer>

<key>Library Folder Count</key><integer>1</integer>

<key>Name</key><string>Bad Girl</string>

<key>Artist</key><string>Beenie Man</string>

<key>Album</key><string>Tropical Storm</string>

<key>Kind</key><string>MPEG audio file</string>

<key>Comments</key><string>http://www.supermusic.nu/</string>

<key>Location</key><string>/Users/liubarbaro/SynologyDrive/brett/Music/Music/Media.localized/Beenie%20Man/Tropical%20Storm/Bad%20Girl.mp3</string>

</dict>


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.

transfer library to Apple music

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