My iTunes preferences/media folder location keeps going to default

Per the question, I set iTunes Preferences/Media folder location to be "\\Volume1\Music" (which is my NAS). Songs in my library that are located there play just fine. iTunes sees the songs obviously. But every time I close iTunes (and/or shut off my computer and then open iTunes again), it keeps defaulting back to the C: drive iTunes Music folder. It's like it can't find or see the NAS. Odd, since the NAS is always on.


I've searched all over and I cannot find an answer so I'm hoping the community can provide help here.


I posted this question the other day but it was deleted for some reason so I'm re-adding it.


[Re-Titled by Moderator]

Posted on Jul 31, 2021 12:32 PM

Reply

Similar questions

178 replies

Sep 25, 2021 4:18 AM in response to William Richards3

William Richards3 wrote:

Hi!
I noticed that songs that were unchecked in my iTunes library (so they don't copy to my iPod or play in my library) ended up on Plex. Do you know how I might keep those from getting onto Plex?
An example might be a song that's the same but one might have a different mix, or is better quality, but that I don't want to delete from my library.

Let me know your thoughts on my other few posts when time permits. As always, it's greatly appreciated!


Given that Plex doesn't appear to take notice of the checked/unchecked status you might have to use this method to make it ignore certain content: https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/. For example I use a .plexignore file to get Plex to ignore my iTunes DRM protected movies that Plex cannot play. You could potentially create a file that will get Plex to ignore specific files in particular folders such as your alternate versions, but that is going to require a fair bit of manual effort. Alternatively they mention that you can put a global ignore file in the root of the media folder. It might be possible to create a playlist of unchecked files in iTunes, export that as say a .m3u file, and then manipulate that to create a workable .plexignore file.


tt2

Sep 25, 2021 5:04 AM in response to William Richards3

William Richards3 wrote:

Quick question, if I want to use Apple Music in a car down the road (I don't have a car with it yet), will it change all my music to lower baud as I've read? Will it replace my versions with theirs if same artist/title? I worked hard to edit the silence out of the ends of songs so I don't have the 2-3 (or more sometimes) silence at the end of tracks. My music fades and then it is immediately over - no waiting for the song to end in silence. Are there ways around this?

I have two iTunes libraries right now: 1) My "Y" mapped drive and 2) The volume1 NAS one. Can I use the mapped drive for Apple Music?

Any other things I should be aware of? How can I best protect MY music but get into that world such as Apple TV with that on it for example?

Thanks!!!


A subscription to Apple Music shouldn't cause any changes in your locally stored media. That said I do recall an occasional issue with purchases where the store version of metadata can reassert itself over local changes. The solution there is to hide the purchase from your purchase history and then your local matched/uploaded version of the metadata will rule. When working with a synced copy of the library on another computer or device you may occasionally find that matching is imperfect, e.g. the secondary library gets a clean copy of what was originally an explicit track.


Before starting a subscription you should take a complete backup of your library. You might want to test the waters with Apple Music by creating a separate library (which will initially include all of your purchases) and then selectively add content to that library. In my case I have an Apple Music library with about 10,000 tracks that syncs automatically between five computers, my iPhone and iPad, and is available to my Apple TVs and HomePods. I have a seperate primary library with about 65,000 tracks that includes content that I don't need to have everywhere such as alternate versions, dupes, interview tracks, stuff with missing/incomplete metadata, etc. As and when I feel the need I will add content from my primary library to the cloud library, and the cloud library also includes any Apple Music content that will stop working when I decide to cease my subscription.


When you have a subscription to Apple Music any content downloaded from the service goes into <Media Folder>\Apple Music. Apart from that it all works as normal. Each individual .itl file is optionally enabled for Apple Music/iCloud Music Library.


tt2

Sep 25, 2021 5:26 AM in response to turingtest2

turingtest2 wrote:

... When working with a synced copy of the library on another computer or device you may occasionally find that matching is imperfect, e.g. the secondary library gets a clean copy of what was originally an explicit track.


Secondary libraries also typically get content in 256K AAC format, although potentially uploaded tracks might be delivered in the original format.


tt2

Sep 25, 2021 8:17 AM in response to William Richards3

William Richards3 wrote:

<snip>

I missed that last sentence. After editing my XML file, I've been saving it simply as "iTunes Library.xml" or "iTunes Library (COPY).xml. Do you think it's critical that I name it as you indicate? Or don't you think it matters? As I was able to import playlists, I don't think that would or should matter but I wanted to ask you. And can you save a file with slashes in it? I tried doing so within the XML and also a Word document and it won't take it.

Now in Plex select the settings wrench, then Plugins and in the space for iTunes library XML path type in volume1/music1/iTunes Library.xml and save changes.


The actual name of the XML file is up to you, but it must correspond to the path you select in the Plex plugin screen if it is going to get imported by Plex.


You cannot use slash or backslash as characters within a filename as they are used as folder separator characters. Which one is in use depends on the file system.


tt2

Sep 25, 2021 12:01 PM in response to William Richards3

William Richards3 wrote:

With so many album titles missing, I went back to the original MP3 files which I used to change over to the ALAC files. Using Export/Import, the data should have been carried over. I'm noticing that many of the album titles are on the original MP3 files but not on the ALAC files. I'm wondering how/why that happened? And if there's anything that can be done. I went to look at about ten files that Plex show as missing (and are missing on ALAC) and nearly every one had the album on the MP3 file ID3.

Is there a way to get the data onto these files. I'm up to the "K's" for artist's albums missing the name. It sure would be helpful if this data had stayed on the files. But because it didn't, Plex isn't seeing it either which makes sense.


Are the files in the correct album folder for each album, or have they ended up in an Unknown Album folder? If they are in the right folders you could potentially use the TagFromFilename script to restore the missing data, although that perhaps won't work so well if you have a custom naming scheme which I think you have. It might be possible to tweak the script so that it only tries to correct the album title.


Any script or other that you can think of that could be run? Plex shows 72 artists left with unknown album titles. Sometimes there are several within an artist which makes it quite a bit of work.

I also noticed some genres and ratings missing as well that were on the MP3s before I used Export/Import which didn't make it onto the ALAC in Windows. That said, the data for the artists/songs I'm checking is populating in iTunes on the ALAC so it did carry over there, it just didn't on the actual Windows files. And remember, the data was there before running the script so it should have carried over, right?

Any help here would be greatly appreciated!

I don't know of any way to do this except to go one-by-one in Plex. I'm wondering if I should do the same on the ALAC files now being utilized in my library.


No point making the edits in Plex, they don't get written back the file and the data may go missing next time you refresh the library. Fix it in iTunes, and it should carry over into Plex.


See the multiple tags section of Repair security permissions for iTunes for Windows - Apple Community for a possible explanation. When there are multiple tags it is possible that some data is visible in Explorer, and even shown correctly in iTunes, but might be lost when editing or exporting metadata if a particular subroutine accesses the alternate tag. I cannot say for certain if that is what happened, but offhand is the only plausible mechanism that comes to mind.


tt2

Sep 25, 2021 12:04 PM in response to William Richards3

William Richards3 wrote:

Adding to that, perhaps it is the CustomRenamer script where some metadata was lost?
Not that we can do anything about it, but I just mention because maybe it wasn't the E/I script?


CustomRenamer shouldn't change any metadata. It selectively moves files that aren't in the desired pattern and then relinks the library to the relocated files. I suppose if there was an existing discrepancy between the tag and the information in the library there is a small chance that iTunes would refresh its metadata after being reconnected, but I don't think that is how it works.


tt2

Sep 25, 2021 1:13 PM in response to turingtest2

turingtest2 wrote:


William Richards3 wrote:

Hi!
I noticed that songs that were unchecked in my iTunes library (so they don't copy to my iPod or play in my library) ended up on Plex. Do you know how I might keep those from getting onto Plex?
An example might be a song that's the same but one might have a different mix, or is better quality, but that I don't want to delete from my library.

Let me know your thoughts on my other few posts when time permits. As always, it's greatly appreciated!

Given that Plex doesn't appear to take notice of the checked/unchecked status you might have to use this method to make it ignore certain content: https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/.
tt2

Thanks for the input. It sounds like a lot more work than merits given that we're not talking about a lot of songs. I think I'll just find the duplicates in Plex and delete it that way - although maybe they'll get back into Plex each time I update the XML.

Sep 25, 2021 2:35 PM in response to turingtest2

YOU SAID: Are the files in the correct album folder for each album, or have they ended up in an Unknown Album folder? If they are in the right folders you could potentially use the TagFromFilename script to restore the missing data, although that perhaps won't work so well if you have a custom naming scheme which I think you have. It might be possible to tweak the script so that it only tries to correct the album title.


ME: The files are in the correct album folder for each album. The structure is "Artist / Album". On these "unknown albums", if I use ID3 tagging program, or even Windows/Audio properties - the album name is missing. That's the issue.


YOU SAID: No point making the edits in Plex, they don't get written back the file and the data may go missing next time you refresh the library. Fix it in iTunes, and it should carry over into Plex.


ME: The ratings, genres and such are in iTunes. It's missing these on some songs in Windows (like artwork that was missing there even though they show in iTunes). The oddity here is that that info was on the MP3 version of the files so I would have to go one-by-one in Windows and then hope they show up in Plex when I update the XML. That's what I'm trying to see. I'll take a look at the repair security permissions for iTunes.

Sep 25, 2021 3:29 PM in response to William Richards3

William Richards3 wrote:

Thanks for the input. It sounds like a lot more work than merits given that we're not talking about a lot of songs. I think I'll just find the duplicates in Plex and delete it that way - although maybe they'll get back into Plex each time I update the XML.


You could perhaps have a playlist in iTunes that notes what all this excluded content is, so that you can select and remove it from Plex after doing an import of the media folder and updating the playlists.


tt2

Sep 25, 2021 5:09 PM in response to turingtest2


I'm not sure how the ITL file comes into play. Would you mind a few quick steps on what to do?
If I clone the ITL file from the main library, I would close iTunes and then copy that ITL file onto the Y: mapped one, replacing that ITL?

Yes, unless perhaps you're already using the same .itl file regardless of which path you open it from. I would need to know the two paths to be certain, and confirm they have different modification dates. Rather than replace the current file rename it so you can easily revert to the previous file if you're not happy with the results.

I'm not 100% sure I understand, sorry. The path to the mapped Y: drive would be Y:\MUSIC. Then the Artist/Albums within.

On the NAS it's the Volume1\\Music1. Is that what you mean?

The modification date for the mapped Y: is August 23.

For the volume1 date, it's September 25.

Should I have Y: mapped iTunes open and highlight the entire library and then run the script?

Yes, although I would test a small list first to ensure it is behaving as desired first. The track-by-track confirmation mode can also be useful for making sure that you're setting options correctly for the required outcome.
When you clone the library you make a copy of the .itl file with a different name or on a different path. You can use the shift-start-iTunes method to switch between the two copies. Once you have two independent files changes you make in one library (such as the path to a file) won't be made in the other. Metadata changes aren't reflected either, but can be picked up later when a track is played for example. The iTunes library is the .itl file. The XML is a plain text (sort of) representation of most of the data in the .itl file and provided for use by third party software such as Plex. iTunes doesn't normally use the XML file although it can be imported and exported.

What I would do based on the input here it sounds like is much like when I work with the XML files.

With iTunes closed:

  1. Copy the existing ITL from the mapped Y drive just to back up depending on the outcome of things.
  2. Copy the volume1 ITL
  3. Now copy the volume1 ITL over the mapped Y drive on
  4. Open iTunes? And then highlight some songs to see if it works as it should?

I'm not quite sure what the outcome is (what to expect). But is this what you see that I should do?


YOU SAID: Metadata changes aren't reflected either, but can be picked up later when a track is played for example.


ME: And as far as the metadata, are you saying that it doesn't carry over from the Volume1 to mapped library (unless I play a song in the library?). Might be easier to just try to update the differences in the mapped drive that I've made in the Volume1 if that's the case?


Please let me know. THANKS!


Sep 25, 2021 5:16 PM in response to William Richards3

Did I not post this next question? I thought I did but I'm not seeing it. Weird.


I have about 100 titles I purchased in iTunes store. They are in 128 AAC. I recall that iTunes removed the DRM from those songs and gave users the opportunity to get 256 AAC files (same songs) without charge, and with DRM removed. Am I right about that? I never did and now when I try to download any, it's saying I don't have any to download.

Do you know where/how I could get those upgraded fidelity files if, indeed iTunes/Apple allowed users to do it?


Is there a way I can remove the DRM from the 128 if not? I've done it by creating playlists and burning to CD and then making lossless version from there. They won't go on Plex with DRM as you know. So I've done that on all 100 or so songs but I'm much more interested in the improved fidelity.


Please let me know.


THANKS!

Sep 29, 2021 1:11 PM in response to William Richards3

Side note update that I noticed.


I SAID: With so many album titles missing, I went back to the original MP3 files which I used to change over to the ALAC files. Using Export/Import, the data should have been carried over. I'm noticing that many of the album titles are on the original MP3 files but not on the ALAC files.


NOW: I am seeing that it's actually just the original MP3 files (which I didn't have in .wav) that remained MP3 that don't have much metadata on them. I've been manually updating the library for those "unknown albums" and have discovered that the files I update are all MP3s. I just thought I'd let you know. So I don't think the ALAC files lost much from the export/import script. I don't know why the MP3 files didn't retain the metadata when the script ran.


Thanks.

Oct 2, 2021 1:59 PM in response to William Richards3

Hi,


I've been slowly making my way through Windows Explorer and have been updating missing ID-tags for a ton of songs. Either the original MP3s were missing those (and I never noticed), or something happened in all the work I've been doing to lose quite a bit of data on some songs.


Regardless, I am seeing files missing the Comments, Album Artist, Genre, Year, Composer, and even artist and title on some of them. This is not universal. Many songs have all the proper data. And at first I thought it was more the MP3s (that I was unable to convert to lossless as I didn't have the original .wav files), but it's also on the lossless ones.


So I've been going through Artist and Album, song-to song and editing those files that need it. I am only up to halfway through the B's and discovering this will take as long as a couple of weeks to get through depending on other things going on (and could take even more time).


I tried the Tag from Filename script you suggested for missing album titles but wasn't sure how to run it. I backed up the XML/ITL files before I started. I then highlighted an artist and songs in Itunes and ran the script. It actually somehow deleted the highlighted songs from iTunes so I copied the XML and ITL back and they came back. I wasn't sure if this was meant to put the metadata on the songs in Windows Explorer or just what. I did read through the script notes in Notepad++ but wasn't clear on what to expect, or what to do.


I also noticed a couple of interesting things over the past week or so


  1. I was first working in Plex and was updating the missing album titles and had made my way through about 3/4ths of them - at which point I went into Windows Explorer and added the missing albums there (using ID3 tagging program). Then I would go to Plex and pick "update metadata" for the particular album and it would pick it up. So that saved me some time as I only had to enter it in one area.
  2. Once I finished that work up, I then noticed quite a number of missing entries in Windows Explorer such as "Composer, Genre, Album Artist etc." Specifically I was working on "Composer" entries on songs in Windows Explorer AND in iTunes. (I use Composer field for my "seasonal" entries - Winter, Spring, Summer and Fall). What I noticed is that if I edited the songs in iTunes (Get Info), and put the entry on a song(s) there, it would come through into the Windows Explorer without my having to do that manually.


I bring those two things up because Windows is picking changes up on missing fields not entered already in iTunes. Plex is picking up entries I make in Windows Exp. if I do "Refresh Metadata". So I'm wondering if there isn't some script that could force the information from iTunes (where the data DOES exist but hasn't come through to Windows) so I don't have to go through the arduous, and painfully slow task of manually doing editing as described above (Artist/Album/Song-by-song for any missing data). Think of it as Plex's "Refresh Metadata" kind of thing?


I tested this just now to prove whether this worked. I had a song with composer entry of "Spring." I had this open in Windows Exp. I then went to iTunes and edited it, changing Spring to "Winter." Windows Exp. picked it up without me having to do anything. So it now shows "Winter" in the ID tagging in Windows Exp.


So if Windows Exp. picks up a change I make like that, shouldn't there be a way to have a script that could take all the fields in iTunes and map it or carry it over to Windows Exp.?


If this could be done it would save me potentially weeks of time. What I can't understand is how one artist can have all the albums and songs there with 100% of the info from the ID tags I want on the songs, while another artist is missing everything but Artist and Title and not chart data, genre, etc., or missing even everything. If the data is in the XML file which I believe it is, could that be utilized in some manner? (I checked several Billy Joel songs as that was one artist who was missing all the chart data, composer, comment, genre, etc. but it was all there in the XML file).


Is this doable? I know you've mentioned that Repair Registry script which I've never used for one reason or another. My gut is telling me that isn't the solution here but maybe it is. If so, could you explain that again?


I'd sure appreciate it if this could be done. Perhaps taking the Export/Import in some fashion but tweaking it so songs stay but data is copied again onto the songs?


Hope all is well. Anxiously awaiting your input. This has been an amazing journey full of challenges which you've helped solve at every step so I can't think you enough once again for that. If this isn't anything that can be done, I'll just do it manually.


Thanks!!!!

Oct 4, 2021 10:12 AM in response to William Richards3

William Richards3 wrote:

Did I not post this next question? I thought I did but I'm not seeing it. Weird.

I have about 100 titles I purchased in iTunes store. They are in 128 AAC. I recall that iTunes removed the DRM from those songs and gave users the opportunity to get 256 AAC files (same songs) without charge, and with DRM removed. Am I right about that? I never did and now when I try to download any, it's saying I don't have any to download.
Do you know where/how I could get those upgraded fidelity files if, indeed iTunes/Apple allowed users to do it?

Is there a way I can remove the DRM from the 128 if not? I've done it by creating playlists and burning to CD and then making lossless version from there. They won't go on Plex with DRM as you know. So I've done that on all 100 or so songs but I'm much more interested in the improved fidelity.

Please let me know.

THANKS!


The iTunes Store stopped applying DRM in late 2009 if I recall correctly. Content purchased before that date remains in your purchase history unless removed by the rights holders. It will still be delivered in 128K protected AAC format. You can burn that to audio CD and rip back for a small loss of quality. For a while there was an upgrade scheme that allowed you to pay a fee to upgrade to 256K DRM-free versions but that no longer exists. Those with an iTunes Match subscription can have their purchases matched, remove the local copies, then download a 256K DRM-free version of the previously purchased tracks. These copies can be freely used thereafter but don't upgrade the copy in the purchase history. I've replaced all of mine where possible and then hidden the original purchases to avoid confusion. The odd track I couldn't replace that way I burned to CD and ripped back.


tt2

Oct 4, 2021 10:24 AM in response to William Richards3

William Richards3 wrote:

<snip> (5000 char limit)

I was first working in Plex and was updating the missing album titles and had made my way through about 3/4ths of them - at which point I went into Windows Explorer and added the missing albums there (using ID3 tagging program). Then I would go to Plex and pick "update metadata" for the particular album and it would pick it up. So that saved me some time as I only had to enter it in one area.


As noted previously Plex does not write data back to tags. The corrections should be made in iTunes which does update the tag, then the updated content can be refreshed in Plex.


. Once I finished that work up, I then noticed quite a number of missing entries in Windows Explorer such as "Composer, Genre, Album Artist etc." Specifically I was working on "Composer" entries on songs in Windows Explorer AND in iTunes. (I use Composer field for my "seasonal" entries - Winter, Spring, Summer and Fall). What I noticed is that if I edited the songs in iTunes (Get Info), and put the entry on a song(s) there, it would come through into the Windows Explorer without my having to do that manually.


Again, update in iTunes, this should then show in Windows Explorer and when refreshed in Plex. In the unlikely event that updates to metadata in iTunes for mp3 files aren't reflected in Windows Explorer see my notes on multiple tags in Repair security permissions for iTunes for Windows - Apple Community.


I bring those two things up because Windows is picking changes up on missing fields not entered already in iTunes. Plex is picking up entries I make in Windows Exp. if I do "Refresh Metadata". So I'm wondering if there isn't some script that could force the information from iTunes (where the data DOES exist but hasn't come through to Windows) so I don't have to go through the arduous, and painfully slow task of manually doing editing as described above (Artist/Album/Song-by-song for any missing data). Think of it as Plex's "Refresh Metadata" kind of thing?

I tested this just now to prove whether this worked. I had a song with composer entry of "Spring." I had this open in Windows Exp. I then went to iTunes and edited it, changing Spring to "Winter." Windows Exp. picked it up without me having to do anything. So it now shows "Winter" in the ID tagging in Windows Exp.

So if Windows Exp. picks up a change I make like that, shouldn't there be a way to have a script that could take all the fields in iTunes and map it or carry it over to Windows Exp.?

If this could be done it would save me potentially weeks of time. What I can't understand is how one artist can have all the albums and songs there with 100% of the info from the ID tags I want on the songs, while another artist is missing everything but Artist and Title and not chart data, genre, etc., or missing even everything. If the data is in the XML file which I believe it is, could that be utilized in some manner? (I checked several Billy Joel songs as that was one artist who was missing all the chart data, composer, comment, genre, etc. but it was all there in the XML file).

Is this doable? I know you've mentioned that Repair Registry script which I've never used for one reason or another. My gut is telling me that isn't the solution here but maybe it is. If so, could you explain that again?

I'd sure appreciate it if this could be done. Perhaps taking the Export/Import in some fashion but tweaking it so songs stay but data is copied again onto the songs?


ExportImport can be used on the same set of songs the data was exported from without replacing them, although it shouldn't normally be necessary. It is only mp3 files with multiple tags, or no tag at all, where updating in iTunes might not get reflected in Windows Explorer.


tt2

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.

My iTunes preferences/media folder location keeps going to default

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