Newsroom Update

Apple Music today announced the release of its 100 Best Albums of all time, a list crafted by Apple Music’s experts alongside industry professionals. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"Get Info" changes album name and relocates file to that folder

So I'm doing some "housekeeping" with my music in the Music App on a MacBook Air. I have all my music on an external drive. It's roughly 1.2tb of music. My OS is the most current available as of 4/3/2022 (Monterey 12.3.1).


The issue at hand is that when I Command I and look at the info for a song, the album name is changed to a different (existing) album name. It's alway to the same "new" album. So, using the navigation arrows at the bottom of the "Get Info" page and each song that is displayed does this switch.


I have to assume that something is corrupted...the question is what and where and obviously how do I fix it.


Thank you smart people.

MacBook Air

Posted on Apr 3, 2022 3:09 PM

Reply
Question marked as Best reply

Posted on Apr 8, 2022 11:36 AM

Straight up Jedi. Ran on a batch of 70 files, of which majority had reverted to the aforementioned album title. I sat here slack jaw'd watching your script do it's magic...amazeballs! I'll run some more but it looks (I don't know from where) that its pulling the correct album names back into Music. You are amazing. Thank you very much.

Similar questions

14 replies
Question marked as Best reply

Apr 8, 2022 11:36 AM in response to turingtest2

Straight up Jedi. Ran on a batch of 70 files, of which majority had reverted to the aforementioned album title. I sat here slack jaw'd watching your script do it's magic...amazeballs! I'll run some more but it looks (I don't know from where) that its pulling the correct album names back into Music. You are amazing. Thank you very much.

Apr 3, 2022 5:19 PM in response to sterlingfromwestchester

When Music accesses the Song Info data it will read any embedded metadata and update the library with the new information it finds and, if the Keep media folder organized option is enabled, it will also move the file to reflect this new information. At a guess there has been a moment when more tracks have been selected than intended while an edit was made. Perhaps the library has been restored to an older version with the right details, but discovers the wrong ones when tracks are accessed.


Do you have backups? Is it only the album name that is changed? Do you have a sense of how many files could be affected? Turn off the option to keep the media folder organized. It may be possible to read data from the file path to repair damaged files.


tt2

Apr 3, 2022 5:32 PM in response to turingtest2

Thanks for the quick response.


I understand how the “keep organized” option works. I did make a mistake a short while ago where I did have additional files selected when I changed some files via the get info as a batch. But I do not think this issue is directly related to that situation although the Album name the files are changing to is the same as the name in that situation. What is happening is happening on the fly…i.e., song “name” is fine and all the info on the list in Music all reads correctly. Once I go to Get Info, I see the data immediately change the Album Name. I opened finder windows, both for the current album name and the “new album” name and watch the file move when I open the Get Info panel.


Its truly bizarre. It’s like there’s a macro script somewhere. If I went to my first song in Music and opened the Get Info panel and cycled through the songs via the arrows at the bottom, I could move 90,000+ songs into one folder/album.

Apr 4, 2022 10:33 AM in response to sterlingfromwestchester

As I said before I think the damage is already done and captured in the tags of individual files. Music is just catching up when it has cause to check the tag, as it would during playback or when you call up Song Info. Inspect the file properties in Finder rather than Music and see if I'm right.


Anyway, if you turn off Keep organized then accessing the tag shouldn't cause the path name to change. I'm just working on an AppleScript right now that will parse the file path of the form <Some Path>/<Album Artist>/<Album>/[D-]## <Name>.<Ext> and update Album Artist, Album, Disc Number, Track Number, and song Name, if the implied value from the path is different from the value known by Music. I'm still developing it but it seems to work as intended so far. Music/iTunes will replace certain invalid characters with _ so I'm thinking there is the potential there to "fix" things that aren't really wrong. If I was using this to add tag details to tracks in .wav format I'd probably update Artist as well as Album Artist, but perhaps that is a refinement for another day. The path uses Album Artist, or Artist if Album Artist is blank, or Compilations if part of a compilation is true. And right there is another edge case to worry about. Compilations in path implies Album Artist is Various Artists.


What is this new album title that everything is being set to with your library? I could make it so the script only makes a correction when it finds that value, and doesn't try to correct anything but the album title. That might make it a little more efficient and less of a risk to run.


tt2

Apr 5, 2022 1:19 PM in response to sterlingfromwestchester

So I've made some progress with my script, which shouldn't now accidentally copy in substituted underscores for example, or set the artist to Compilations, but it would still be useful to get a clearer picture of exactly what the details of your case are before I finalise and post it somewhere you could download. My Windows versions of such scripts typically offer a track-by-track confirmation mode for testing that the script does what you want with some sample data, after which you run it again in automatic mode without confirmations so it can do the job quickly. Do you want something similar or is it enough that you can test with a small sample first and review the effects in Music and Finder? A more refined version of the script might include something that controls which fields are allowed to be updated.


tt2

Apr 6, 2022 9:29 AM in response to sterlingfromwestchester

I've posted the script to https://samsoft.org.uk/iTunes/tagfromfilename.asp, and tested that I can download it and run the downloaded script on my M1 MacBook Air. Please test with a small sample of tracks you know to be affected first to make sure it works as intended. There is no feedback while it is running which might be an issue when running big batches so you might want to work in the songs view with groups of a few hundred at a time. Please keep an eye out for any unwanted and unexpected changes to other fields. I've made the script generic for now, but I can go in and limit it so that only the album title could be updated, or explain how you might do that for yourself.


tt2

"Get Info" changes album name and relocates file to that folder

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