You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

how to delete duplicated songs all at one time?

I would like to get help deleting duplicated songs, I do not know how they got their in the first place.

Windows 7

Posted on Aug 28, 2011 10:29 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2017 10:14 PM

Some how I got duplicates of my library on iTunes and to get rid of all the new duplicates I went to the library I looked for the date the new duplicate songs were added to the library then I went to columns and where you see Artist, song,

bit rate, time, etc and added 'date added' once that's done click on the box enclosing 'date added' and you will see all songs added by date. Proceed to the last one of the songs with that date press command to highlight it then scroll all the way to the first song and press 'shift' to highlight all of the songs added on that date then simply press delete.

you will be asked if you want to delete these songs...That's it.

483 replies

Nov 13, 2015 1:17 PM in response to Firebird2k6

Aha, I thought we were still trying to repair the broken links!


I'm thinking what you want is a DeDuper that ignores Album, Disc & Track number? Danger with that is that if you have both live and studio versions that aren't distinguished by track names then you'll throw out one at random. It would take a little thinking about and testing, but I could probably shoehorn that in as an option.


In fact, dirty and untested, simply change these 6 lines in DeDuper (currently starting at line 246):


Case 2 ' Physical dupes, same details and size

If L<>"" Then Key=LCase(.Artist & "\" & .Album & "\" & DN & "." & .TrackNumber & " " & .Name & "=" & .Size)

Case 3 ' Alternate dupes, same details but different size

If L<>"" Then Key=LCase(.Artist & "\" & .Album & "\" & DN & "." & .TrackNumber & " " & .Name)

Case 4 ' Missing dupes, same details but file missing

If L="" Then Key=LCase(.Artist & "\" & .Album & "\" & DN & "." & .TrackNumber & " " & .Name) Else Key=""


for these:

Case 2 ' Physical dupes, same details and size

If L<>"" Then Key=LCase(.Artist & "\" & .Name & "=" & .Size)

Case 3 ' Alternate dupes, same details but different size

If L<>"" Then Key=LCase(.Artist & "\" & .Name)

Case 4 ' Missing dupes, same details but file missing

If L="" Then Key=LCase(.Artist & "\" & .Name) Else Key=""


And it should do what you want.


I guess you'll also want a more liberal pattern matching system for the SyncStats script as well. 😉


tt2

Nov 13, 2015 1:12 PM in response to turingtest2

Yes! I was trying to repair broken links.


But then, when I wasn't able to repair all of them, I added the songs that weren't repaired and tried to merge them with DeDuper (which worked for some). And I have very few duplicates of songs. Usually picked which one I liked most.


Yeah, the SyncStats, I plan to use when I get this first broken links part complete. I haven't tried it yet. The play counts on my iPod are hundreds more, for some reason.


I think, I used to save Playlists, and those playlists contained play counts. When iTunes deleted or corrupted my playlists in updates, I think iTunes reset the playcounts to the "music" counts on this computer.



Should I try Find Tracks again (is that the one that is a new version?) and then run DeDuper again?

Nov 13, 2015 2:01 PM in response to Firebird2k6

The fuzzy matching scheme obviously works better when there aren't so many tracks all lumped into the same folder, and with so many sharing the same starting characters, nevertheless there are some surprises there. 😮😕


Looking at it there will be a fuzzy match from the Name to the Artist. I'm sure I can find a way to tweak the script to prevent those. See Soundex for the rule scheme. Cream & Cryin' both get a soundex code of C650.


tt2

Nov 14, 2015 2:14 PM in response to Firebird2k6

I've added another tweak to FindTracks so that it uses two soundex patterns rather than one when the search string contains " - ". Hopefully this won't negatively impact the behaviour elsewhere (I haven't had time to test or consider it deeply enough) but it should prevent the song name is similar to the (completely unrelated!) artist name matches that you've been seeing. Grab a fresh download and see if it has helped.


tt2

Nov 14, 2015 3:35 PM in response to Firebird2k6

I take it that is the newer version of the FindTracks script? I've probably got to force it to skip some of the other search patterns that it is using for your library. Hopefully I can look at it again sometime tomorrow. SyncStats is going to need a tweak if you hope to match tracks on the device that might have valid track no. or album data with those in the library that don't (or vice versa).


tt2

Nov 19, 2015 7:00 PM in response to Firebird2k6

Apologies for not getting back to you sooner. Been busy with Real Life™. Still haven't got around to tweaking FindTracks further as I think that will need more of a hack, but for SyncStats and ImportDevicePlaylists you should be able to go in and edit this line:


Signature=LCase(.Artist & "\" & .Album & "\" & .DiscNumber & "." & .TrackNumber & " " & .Name)


in a function called Signature and replace it with something like:


Signature=LCase(.Artist & "\" & .Name)


to reflect the properties that you still have in your files after you've edited them. Differences in album, disc number and track number will be ignored but as long as a track with matching artist and song name exists it will be treated as a match.


tt2

Jan 27, 2016 10:27 PM in response to turingtest2

My PC died and I replaced it with a MacBook. I lost iTunes but not my music files as most were stored on external drives. I can import them to a new iTunes library but, want to avoid duplicates. The trouble is that the file names are in disarray. For example, sometimes "The Beatles" are just "Beatles" and album names may be Anthology Disc 1 or Disc One. Some of the titles include a track number, sometimes there is no album name or it's "Unknown Album". I have about 340GB of music files mostly ripped from CDs, a few purchased, and a few recorded live. What is the best way to get the library reconstructed with the fewest duplicates or errors?

Jun 25, 2016 10:45 PM in response to Suavecito69

I looked at the 9000 duplicate songs in my Itunes folder and found a common thread that I am using to get the duplicates out somewhat quickly. The duplicate filename ends with either a space then 1.mp3 , 2.mp3 , 1.m4a and 2.m4a. I began by using a program called SearchMyFiles to search my Itunes music folder for filenames that ended with each of these file endings using wildcard options. I then selected the results of the individual searches and moved them out of the Itunes folder into a new folder called duplicate songs on a spare hard drive . Afterwards, I re scanned the Itunes folder for duplicates and found it to be clear. You might also check for duplicate album cover Jpegs and other files using the same methods.

Good luck


BH

Jun 25, 2016 10:52 PM in response to Suavecito69

I looked at the 9000 duplicate songs in my Itunes folder and found a common thread that I am using to get the duplicates out somewhat quickly. The duplicate filename ends with either a space then 1.mp3 , 2.mp3 , 1.m4a and 2.m4a. I began by using a program called SearchMyFiles to search my Itunes music folder for filenames that ended with each of these file endings using wildcard options. I then selected the results of the individual searches and moved them out of the Itunes folder into a new folder called duplicate songs on a spare hard drive . Afterwards, I re scanned the Itunes folder for duplicates and found it to be clear. You might also check for duplicate album cover Jpegs and other files using the same methods.

Good luck


BH

how to delete duplicated songs all at one time?

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