iTunes downloading duplicates of podcasts and Apple Music tracks

Every time I restart iTunes it's downloading duplicates of every unplayed podcast and every Apple Music track I've added to my library.


It's not producing duplicates listed in the iTunes client itself, just adding multiple copies of each file on the hard disk, so I end up with Podcast.mp3, Podcast 1.mp3, Podcast 2.mp3, Podcast 3.mp3 (or Song.m4p, Song 1.m4p, Song 2.m4p), etc in my iTunes Library folder. Up to 20 in some cases, before I've worked out why my hard drive space seemed to be disappearing at a ridiculous rate.


It looks like it started about the beginning of October last year and downloaded duplicates of everything that's come out since. Podcasts I downloaded or tracks I added to my library before that date aren't affected.


I first noticed the issue in December, and reported it in threads in the iTunes and Apple Music communities, but both are now locked due to inactivity and the issue remains!


Can anyone help?

MacBook Pro (Retina, 15-inch, Mid 2015), macOS High Sierra (10.13.2)

Posted on Jun 14, 2018 5:29 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 18, 2018 9:03 AM

Do you have any anti-virus software that could be snagging the iTunes files? Whenever you do anything in iTunes it writes out a new temporary file, deletes the original, then renames the temporary file to replace it. If you have the XML file enabled that gets rewritten too. When everything is working normally the temporary files flit in and out of existing as you make changes in the library, a track completes playing, and so on. With iTunes closed it should be safe to remove all temporary files in the iTunes folder. If possible exclude the whole iTunes folder from any real time AV monitoring.


You can use File > Add to Library and select the iTunes Media folder to add in any content this isn't currently listed in your library.


See Find and remove duplicate items in your iTunes library - Apple Support for Apple's advice on removing duplicates. Reducing the view to Same Album duplicates and only deleting those added most recently (you can sort on the Date Added column) should allow you to clean up without losing information. Or see https://dougscripts.com/apps/dupinlite2app.php for a possible deduping app which might be better than doing it manually. Ideally you would start with a complete backup in case you get over eager at any point and need to pull something back.


tt2

Similar questions

8 replies
Question marked as Top-ranking reply

Jun 18, 2018 9:03 AM in response to James Clayton

Do you have any anti-virus software that could be snagging the iTunes files? Whenever you do anything in iTunes it writes out a new temporary file, deletes the original, then renames the temporary file to replace it. If you have the XML file enabled that gets rewritten too. When everything is working normally the temporary files flit in and out of existing as you make changes in the library, a track completes playing, and so on. With iTunes closed it should be safe to remove all temporary files in the iTunes folder. If possible exclude the whole iTunes folder from any real time AV monitoring.


You can use File > Add to Library and select the iTunes Media folder to add in any content this isn't currently listed in your library.


See Find and remove duplicate items in your iTunes library - Apple Support for Apple's advice on removing duplicates. Reducing the view to Same Album duplicates and only deleting those added most recently (you can sort on the Date Added column) should allow you to clean up without losing information. Or see https://dougscripts.com/apps/dupinlite2app.php for a possible deduping app which might be better than doing it manually. Ideally you would start with a complete backup in case you get over eager at any point and need to pull something back.


tt2

Jul 17, 2018 9:15 AM in response to James Clayton

Make sure that your profile has full read and write permissions to the iTunes folder and all subfolders. Use Get Info on the iTunesfolder in Finder. Click the lock at the bottom right to make changes. Make sure that Locked isn't ticked and that your own account has Read & Write access, then use the gear icon to Apply to enclosed items and confirm.

User uploaded file


If your media folder is not stored inside your main iTunes library folder then make the same changes to the media folder.





You also make a new library in another location and see if that behaves normally. See Open a different iTunes Library file or create a new one - Apple Support if needed.





tt2

Jun 15, 2018 7:31 AM in response to James Clayton

Ah, got it now. I'm guessing you're looking at repeated issues of Empty/corrupt iTunes library after upgrade/crash that are masked by the fact that you have Apple Music, and perhaps options for automatic downloads selected. You could use File > Add to Library to import the entire iTunes Media folder, then deduplicate the library to slim it down again.


tt2

Jun 18, 2018 7:20 AM in response to turingtest2

Old, non-Apple Music, content in my library doesn't appear to be affected. It's not redownloading my entire library every time, or showing the little cloud icons you normally get when tracks haven't been downloaded. And content in my library that's not available on Apple Music is playing just fine.


Looking in my iTunes folder, I've got about 2GB in 169 temporary files, and in the previous libraries folder I have files going back to 2006. the most recent of those is dated today in the file name. Then 20 of them (about half) are in the last two months, then nothing before that until 2015. But if I actually select any of the recent files the metadata on them says they were created in 2015, and last modified in 5th October 2017, which would be about when the problem started.


What can I safely delete, and what do I need to reimport, to fix the issue without losing all my play history and podcast subscriptions?

Jun 19, 2018 3:09 AM in response to turingtest2

No, no anti-virus software running. (Well, I mean, I have Windows Defender on a Boot Camp partition that I occasionally virtualise with Parallels, but not often, and I wouldn't think that should be interfering.)


Nothing is missing from my library.


iTunes isn't creating duplicates listed in the library. Each podcast/track still only appears once in the library. It's just downloading extra copies on the hard drive and leaving them there. I've been using Gemini 2 from the App Store to clear up my Podcasts and Apple Music folders.

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.

iTunes downloading duplicates of podcasts and Apple Music tracks

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