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

Removing duplicate songs

Why can't Apple add the ability to remove duplicate songs from iTunes? Why does something so fundamental need to be purchased from third party programmers??

macbook pro, Mac OS X (10.6.1)

Posted on Jan 5, 2010 9:04 PM

Reply
22 replies

Jan 6, 2010 1:54 AM in response to Jim VanLeeuwen

I'd have to do this 40,000 times. I have 20,000 songs and 2 duplicates for each song for a total of 60,000 songs. I copied my external music library onto my mac. Then when I fired up iTunes it started importing. I cancelled iTunes. I restarted it an hour later. It started another indexing process. And now my 20,000 songs have all been scattered into a whole bunch of album directories and iTunes indicates that I have 60,000 songs. Arrrgghh. I REALLY don't want to delete 40,000 entries ONE BY ONE. I REALLY don't want to buy a third party program to remove duplicates songs created by iTunes's library. Why can't Apple do a better job supporting this product?? Latest news: I deleted all the songs from my iTunes Library. The songs, however, still exists if you look in the iTunes directory using the Terminal app. How do I now get iTunes to do a fresh index? Alternatively, I've reimported my external music library. Maybe I should just delete all my music files in the iTunes Media/Music folder and restart iTunes.

Jan 6, 2010 8:57 PM in response to Colin Robinson

Thank you Colin.

I didn't know the Option key would create a new library. That's a really handy feature! What happens to the old library when you create a new library? I guess my confusion arises from my uncertainty regarding the nature of the "songs" or links in the iTunes window. Are they the actual songs? Are they simply aliases?

Jim.

Jan 6, 2010 9:23 PM in response to jim94117

The actual songs are stored in the iTunes Media folder. The library is a database of your songs and the playlists you've created. Some song-specific data is saved in this file. If you delete the file, iTunes creates a new, empty copy when you open the application, but any playlists, song ratings, comments, or other information you created is lost. The iTunes Library file is only used by iTunes.

Read more here: What are iTunes library files: http://support.apple.com/kb/HT1660

This will explain the Alternate iTunes library: http://support.apple.com/kb/HT1589

Jan 6, 2010 9:23 PM in response to jim94117

There is another way. You could make use of an applescript to remove duplicate songs. A listing of available applescripts are in http://dougscripts.com/itunes/. Dupin v2.0.5 may be of help to you. Once you download and install these iTunes applescripts, they are accessible within iTunes.

Just download what you need and follow the instructions included with each download and your set.

Jan 10, 2010 2:28 AM in response to Jim VanLeeuwen

Thanks for the links. Why is that when I delete a song in iTunes (move to trash) it is gone permanently from my computer but when I restart iTunes with the Option key to clear out my library my songs aren't deleted? I'm confused. One implies there is a hard link between the song listings in iTunes and the other implies that the links are pointers.

Mar 5, 2011 6:57 PM in response to jim94117

"Duplicate songs" rarely are exact duplicates. A song from an album and the same song on a greatest hits collection may have the same title and maybe even the same length, but chances are near-certain that the mastering will be different (most noticeable as a slight difference in loudness, usually).

I'm not sure how programs identify duplicates, but if they are only using the title, don't trust that. Look to see if the length of the song is different, and maybe even give each version a quick listen to see how alike or unalike they really are.

Apr 2, 2012 4:34 PM in response to jim94117

Great Stuff here thanks.


On a similar note, I have many duplicates. Some I had accidentally added to my library several times (I know, I'm impatient and stupid sometimes). Others are the same in titles from different albums, say the original album and a greatest hit.


Now when I have tried to delete these duplicates, I used the date added key to get a handle on when I got the track versus when I added it to the computer (amazon automatically adds music to itunes) but then the worst thing happened and say tracks one, three, seven, and nine stayed in one folder and two, five, six, eight, and ten stayed in another folder. I call it the zipper. Is there a way to clean up the files on my hard drive and then re importing the cleaned library.


Finally, why does itunes allow duplicate files anyways. So frustrating!


Thanks

Larry

OS 10.7.3 2.66 GHz Intel Core I7 laptop

Apr 7, 2012 11:16 AM in response to larryberrybobarry

larryberrybobarry wrote:


...but then the worst thing happened and say tracks one, three, seven, and nine stayed in one folder and two, five, six, eight, and ten stayed in another folder. I call it the zipper. Is there a way to clean up the files on my hard drive and then re importing the cleaned library.

This can happen if there were slight discrepancies between the tags in the two "versions" of the album. The method you use to list the dupes probably can't show you which of the two they come from so you end up with some files from one album, and some form the other. See my article on Grouping tracks into albums for tips on fixing things up.

Finally, why does itunes allow duplicate files anyways. So frustrating!

iTunes just does what it is told. You tell it to rip and album or import a folder that it has imported before and it will just do it again. If you a import folder that is outside the media folder and iTunes is set up to make local copies then it will, as often as you tell it to. Another common error is to fire up iTunes with an external drive disconnected, connect it and then mistakenly reimport the media folder. iTunes won't recognize that it already knows all these files, it currently thinks they are MIA, so it imports them again. Restart iTunes and you'll find you have multiple entries to the same files. Delete either one and send the file to the trash and you break the remaining entry.


tt2

Aug 20, 2012 7:21 AM in response to turingtest2

turingtest2 wrote:

Finally, why does itunes allow duplicate files anyways. So frustrating!

iTunes just does what it is told. You tell it to rip and album or import a folder that it has imported before and it will just do it again. If you a import folder that is outside the media folder and iTunes is set up to make local copies then it will, as often as you tell it to. Another common error is to fire up iTunes with an external drive disconnected, connect it and then mistakenly reimport the media folder. iTunes won't recognize that it already knows all these files, it currently thinks they are MIA, so it imports them again. Restart iTunes and you'll find you have multiple entries to the same files. Delete either one and send the file to the trash and you break the remaining entry.

Indeed, it does what ones tells it, but that doesn't mean it's a smart approach. An application can think beyond just “I do it because the user told me so”; iTunes could very well prevent duplicates to be imported (e.g. using the traditional Mac's alias manager (the one which identifies a file even if it is moved somewhere else)) or, at least, ask (it does, but only in user playlists).

Removing duplicate songs

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