Replace an Apple Music song entry with a local file
I'm using iTunes for PC. I have some cases where I've bought an album from Bandcamp, and I already have an Apple Music song for some of the songs on the album in my library. I'd like to change the iTunes entries for these songs to be using the local Bandcamp file on my hard drive. Pre-Apple Music, the process for something like this in iTunes for PC would be to right-click, choose the option to show the file in file explorer, delete or move the old file, then repeat the process and locate the new file you want to use. However, this process doesn't work for Apple Music files.
I don't want to just delete the Apple Music song and add the song to my library from the local file because then I lose the listening history - that is, the record of the number of plays, rating, date added, and last played. I use that data to create smart playlists. (See, I'm super weird.)
(I've googled this question and most of the hits you get are people trying to pirate Apple Music content by figuring out where to find the streaming files saved locally. To be clear, that is not what I am trying to do. I've legitimately purchased local files of these songs.)
To summarize my requirements:
- In iTunes for Windows, change a song's source file from the Apple Music version of the song to a local file.
- Retain the listening history of the song, including the number of plays, rating, date added, and last played.
I'm super willing to accept workarounds as long as they meet the requirements.
Windows, Windows 6