Shaheer42

Q: I moved iTunes library to new computer. Now it duplicates all songs

Hi. I moved my iTunes library from my old computer to my new one, according to the instructions provided in this link:

How to move your iTunes library to a new computer - Apple Support

The way I add my songs to the library, is by selecting the "Add folder to Library" option under "File". The music appearing in the iTunes library on my new computer is, I believe, the Music which is present in the iTunes media folder. I don't know whether there used to be these songs in the iTunes media folder in my previous laptop before I followed the instructions above.

But this is not the folder I use to keep my music in. I keep it in a separate music folder. I had such a folder in the previous computer, and have one in the new one as well.The iTunes in the previous computer used to know about this folder. So, if I used to get some new music, I would simply put it in this folder of my computer, and I would go to iTunes and go to the add folder to library option, and select this folder, and it would automatically add any new music files.

But I separately copied this folder to my new computer. So now my new computer has the exact same songs, in a similar folder. But I added some new songs to this folder, and I wanted to add these. And now when I selected the add folder to library option, it started duplicating all the songs, and adding the to the library. I cancelled the process midway, but I still have duplicates of all songs.

I don't know whether this is some bug, but I think by what I did in the above mentioned instructions, it was going to this. But is there any solution?

What I basically want is that I just simply add songs to my separate music folder, and use the "Add folder to Library" option to add all these songs to the library. But, I do not want to erase all the previous music data. I mean I have my playlists and other data like the number of times each song has been played in the iTunes media folder, which I got from the previous computer, so I would not like to make a new one.

Any help would be appreciated, thanks.

Posted on Jul 12, 2015 11:12 AM

Close

Q: I moved iTunes library to new computer. Now it duplicates all songs

  • All replies
  • Helpful answers

Previous Page 2 of 3 last Next
  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 14, 2015 11:41 AM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 14, 2015 11:41 AM in response to turingtest2

    I do not exactly understand what you mean by the state of the library in the new computer. But I'll answer whatever I understand. In the new computer, when I open iTunes, I see all songs with all ratings, playlists and number of times a track has played just like in the old computer. But the iTunes Media folder is located in C:\Users\<Username>\Music\iTunes. This was also the case in the previous computer though.

  • by turingtest2,

    turingtest2 turingtest2 Jul 14, 2015 12:31 PM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 14, 2015 12:31 PM in response to Shaheer42

    But when you double click on a track does it play, or does iTunes complain that it cannot be found?

     

    Are there duplicates listed in the library or does each song appear only once?

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 15, 2015 9:10 AM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 15, 2015 9:10 AM in response to turingtest2

    When I double click on a track, it does play.

    And when I copied the iTunes Media Folder from the previous computer to this one, there were no duplicates created here on the new computer. But when I used "Add Folder to Library" option to add C:\Shaheer42\Music to the library, duplicates started being created. I cancelled the process while it was underway, so every song did not have duplicates, but some of the songs did have duplicates. I deleted all the duplicates, so my library again has no duplicates, but if I do add the folder C:\Shaheer42\Music again to my library, then obviously, I would get duplicates again.

  • by turingtest2,

    turingtest2 turingtest2 Jul 15, 2015 9:21 AM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 15, 2015 9:21 AM in response to Shaheer42

    If the media folder is set to C:\Shaheer42\Music, or you have the option to Copy files... unchecked, or both, then adding the folder should not create duplicates, but that also assumes that every file currently connected to the library is recognized as being located in C:\Shaheer42\Music.

     

    I would expect iTunes to be recalling the previous location of D:\Saheer42\Music\... and placing an exclamation mark against tracks as you try to play them.

     

    I am confused.

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 15, 2015 2:27 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 15, 2015 2:27 PM in response to turingtest2

    No, look. On my previous computer, I used to use "Add folder to library" to add D:\Shaheer42\Music into the library. At this time, the iTunes Media Folder was C:\Users\<Username>\Music\iTunes. But I had the option Copy files... disabled. The iTunes Media Folder did not itself have any of the songs listed in my library. And all songs in my library were recognized to be located in D:\Shaheer42\Music. The result was that whenever I used "Add Folder to Library" option to add D:\Shaheer42\Music to my library, iTunes recognized all the songs that were already in my library, and did not make two copies of them appear. But any new songs I had added to D:\Shaheer42\Music now started appearing in the library. All this time, the Copy Files... option was disabled so the iTunes Media Folder did not itself contain any of these songs.

    Maybe if at this time I tried to copy the iTunes Media Folder to my new computer, then in the library of my new computer, I would probably get those exclamation marks you are talking about, as of course, iTunes would no longer see music files inside D:\Shaheer42\Music.

    But then when I wanted to shift my library from my old computer to the new computer, I read a guide by Apple, in which was written that before I start, I should enable the Copy files... option. So I did enable this. iTunes took a long time, and in the status bar, it was written something like "Copying <name of song>". The name of every song in my library appeared, and then it was finished. I then checked the iTunes Media Folder, and it had copies of all my songs. Now if I did use the "Add folder to library" option, and tried to add D:\Shaheer42\Music, then maybe I would actually get duplicates of all songs. I did not however try this. I think at this time, iTunes started recognizing all songs in the library to be located in the iTunes Media Folder, and I also think that even if I deleted D:\Shaheer42\Music, it would make no difference to iTunes' library.

    I then copied files D:\Shaheer42\Music from my old computer to C:\Shaheer42 on my new computer. Also, I copied the whole iTunes Media Folder from my previous computer, to C:\Users\<Username>\Music\iTunes in my new computer. I simply opened iTunes, and did not add any single file or folder at this point. All the songs, ratings, playlists etc. from my previous computer were appearing on iTunes. All of these songs were recognized by iTunes to be located in the iTunes Media Folder. Then I tried to use "Add folder to library" to add C:\Shaheer42\Music to my library. This folder had the same songs as were already present in my library, but iTunes did not recognize these to be the same, so it started adding these songs, which made each song seem to appear twice in the library. Actually what was happening was, that one of each song was from iTunes Media Folder, and the other of each song was from C:\Shaheer42\Music.

    I think there might be a solution. What do you think that I go and delete the folder C:\Users\<user>\Music\iTunes\iTunes Media\Music. This would probably lead to all files having the exclamation mark with them. And if I would double click any file, suppose "Lean On - DJ Snake/Aluna George", it would give me an option to locate the file or to cancel. I would click "Locate". And in the box that opens in which I have to select the file, I would go and select the file from C:\Shaheer42\Music. Then iTunes would ask me to use the location of this file, to find all other missing files in the library. I would ask iTunes to use the location. And then I think, all files would again become playable, but now iTunes would recognize all files to be located in C:\Shaheer42\Music. In this way, if I added a file to C:\Shaheer42\Music, I would simply go to "Add folder to library", and it would recognize all files that are already in the iTunes library, and would not add those files again, but it would add any new files that are not in the library. This would be just what I wanted. Should I try this? And if I do, I think that I should keep the Copy Files... option disabled, right?

  • by turingtest2,

    turingtest2 turingtest2 Jul 15, 2015 3:47 PM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 15, 2015 3:47 PM in response to Shaheer42

    So you used the Apple support document to make the library into the standard shape, and moved it to your new computer, where it all works perfectly.

     

    Things only start to go wrong when you try to use in a way it isn't designed for.

     

    The only change you need to make is to start putting new content that you want to add to your library in the Automatically Add to iTunes folder inside the iTunes Media folder. Use iTunes the way it is meant to be used. Abandon C:\Shaheer42\Music, you don't need it any more. Embrace the iTunes Media folder. Let the software look after where the files are stored and enjoy the music.

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 16, 2015 12:41 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 16, 2015 12:41 PM in response to turingtest2

    Well the thing is actually that iTunes takes a long time to startup, and I do not always use iTunes to play my music. I often like to play it using Windows Media Player, and to do that, I just open C:\Shaheer42\Music, and double click on each song I want to play from there. It just seems more comfortable to me. I could do this by going into the iTunes Media Folder instead of C:\Shaheer42\Music, but iTunes Media Folder organizes files in a way that gives me a headache.

    So I could do the solution I told about above, could I not?

  • by turingtest2,

    turingtest2 turingtest2 Jul 16, 2015 12:51 PM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 16, 2015 12:51 PM in response to Shaheer42

    Keeping all your music in a flat folder structure isn't ideal. It doesn't scale well.

     

    If you want the choice of whether to use iTunes or Windows Media Player (or MediaMonkey, or anything else) then I'd strongly recommend you use the serviceable library that you already have. See Getting iTunes & Windows Media Player to play nicely for tips on using the same media folder for multiple programs.

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 16, 2015 1:27 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 16, 2015 1:27 PM in response to turingtest2

    So I could do the solution I told about above, could I not? I mean this solution:

    What do you think that I go and delete the folder C:\Users\<user>\Music\iTunes\iTunes Media\Music. This would probably lead to all files having the exclamation mark with them. And if I would double click any file, suppose "Lean On - DJ Snake/Aluna George", it would give me an option to locate the file or to cancel. I would click "Locate". And in the box that opens in which I have to select the file, I would go and select the file from C:\Shaheer42\Music. Then iTunes would ask me to use the location of this file, to find all other missing files in the library. I would ask iTunes to use the location. And then I think, all files would again become playable, but now iTunes would recognize all files to be located in C:\Shaheer42\Music. In this way, if I added a file to C:\Shaheer42\Music, I would simply go to "Add folder to library", and it would recognize all files that are already in the iTunes library, and would not add those files again, but it would add any new files that are not in the library. This would be just what I wanted. Should I try this? And if I do, I think that I should keep the Copy Files... option disabled, right?

  • by turingtest2,

    turingtest2 turingtest2 Jul 16, 2015 2:43 PM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 16, 2015 2:43 PM in response to Shaheer42

    The locate function will fail because your files are set out in the wrong shape.

     

    I suspect because you followed Apple's guidance on the original computer its library is now pointed at all files in the iTunes Media folder, so it won't be any help for retracing your steps.

     

    Are the files in the music folder in a standard pattern, e.g. <Name> - <Artist> or is it random? If there is a reasonable connection between the filename and the metadata my FindTracks script might work. It is much more flexible than the iTunes feature, and I could tweak it if needed.

     

    While I recommend that people let iTunes manage their media I got irritated by some of iTunes limitations, e.g. max 40 characters for file & folder names and poor character substitutions, and I also got fed up of moving things by hand and then fixing the broken links, so I wrote a script to organize things my way. It may be possible to tweak it so that it does what you want, but I'd need a clear idea of what that is.

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 16, 2015 4:26 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 16, 2015 4:26 PM in response to turingtest2

    About 10% of my songs would have no order in the tags. But the tags of about 90% of my songs are in the manner: "<name> - <artist>" (excluding inverted comma's, and including spaces). In cases where there are multiple artists of one song, then in some of the songs I write <artist 1> ft. <artist 2> or <artist 1> feat. <artist 2> or <artist 1> & <artist 2>. For almost every song that enters the music folder, I do two things. Firstly I go and change the tag to what I told above, and secondly I right-click the song, go to Properties, go to Details, and over there I change two things. Firstly, in the box in front of "Title" I write the song name. The exact song name. Exactly as the "<name>" in the tag. And in front of "Contributing Artists" I write the name of the artist of that song. If there is just one artist, this is simple. But in case there are multiple artists, I sometimes write it as <artist 1> ft. <artist 2> or <artist 1> feat. <artist 2> or <artist 1> & <artist 2>. This appears as it is in iTunes. I mean that if I write <artist 1> ft. <artist 2> over here, it would appear exactly as <artist 1> ft. <artist 2> in iTunes in front of the song name. But mostly I write the name of the first artist, then I double click within the box in the space ahead of what I have typed. This puts an automatically generated semi-colon right next to the first name. Then I type the second artist's name. For more than two artists, I do the same for each artist. In iTunes or any iPhone, these artists appear as <artist 1>/<artist 2>.

    But luckily however 70% of my library has songs with one artist or band. So the tag is simply "<name> - <artist>", the title in Properties> Details is simply <title> and the contributing artist is simply <artist>.

    If your script could help with these 70% songs in my library, I could relocate the rest manually. But if it can help me with 90%, then that would be awesome!

    P.S. I just noticed that if I started relocating each song manually one by one instead of coming here in the first place, then I could have had been easily done with all this some time ago

     

    EDIT: Just to clarify, by 'tags' I mean the name of any song that I would see when I open a folder containing a song on my computer. Basically the name of any file in Windows.

  • by turingtest2,

    turingtest2 turingtest2 Jul 16, 2015 4:33 PM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 16, 2015 4:33 PM in response to Shaheer42

    I neglected a link to the FindTracks script earlier. I was referring to tags as the metadata stored inside the file, e.g. the Name, Artist, Album, Track Number etc. that you would see listed inside iTunes or Windows Media Player. The script uses the values that it can read from iTunes to predict possible file paths the track might exist at. If it can find a file of exactly the right size (or within a predefined margin) on one of those paths it can automatically reconnect to it.

     

    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 16, 2015 5:15 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 16, 2015 5:15 PM in response to turingtest2

    I'll tell you about the Name, Artist, Album, Genre, Rating and Track Number of my songs. Firstly, Album, genre, Rating and Track Number are random. I do not keep these in any specific order. The Name and Artist however are the same as the "Title" and "Contributing Artists" that I talked about earlier. If I right click a music file, and go to Properties, then under the heading "Details" there would be "Title" and "Contributing Artist". The Title I would type would show up under the heading of "Name" in iTunes. And "Contributing Artists" show up as "Artist" in iTunes. In my previous comment, I explained how I name my Titles and Contributing Artist.

  • by turingtest2,

    turingtest2 turingtest2 Jul 17, 2015 3:04 AM in response to Shaheer42
    Level 10 (87,851 points)
    Apple TV
    Jul 17, 2015 3:04 AM in response to Shaheer42

    With iTunes closed make a backup copy of the iTunes Library.itl file then rename iTunes Media as NOT iTunes Media. Start iTunes. This will break all the links in the library. Make sure Keep... & Copy... are turned off. Select a few tracks and run the FindTracks script. Follow the prompts, you'll need to tell it to look in C:\Shaheer42\MUSIC. If it works as expected select a larger batch of files to repair. See this post for more on how FindTracks works.


    tt2

  • by Shaheer42,

    Shaheer42 Shaheer42 Jul 17, 2015 1:20 PM in response to turingtest2
    Level 1 (4 points)
    iTunes
    Jul 17, 2015 1:20 PM in response to turingtest2

    YES! WORKED! I tried the script to manually get about 30 tracks, by clicking Yes or No as you showed in the pictures. Then I made it run automatically. However, for about 30% of my tracks, it told me that it found two songs' names and data in C:\Shaheer42\Music to be matching with another specific song. For example, if it was trying to reconnect "Try - Nadia Ali", it told me that it found two possible songs that could link with "Try - Nadia Ali" and gave the name of those two songs below. Both of these songs had the exact same name, and size and information. I went to C:\Shaheer42\Music to check if there actually existed two such songs, but in the folder there was just one. So, the Script told me type "1" if I wanted to link the song with the first one, and "2" if I wanted to link it with the second one. I just typed 1. Then came another similar message about a different song, but before progressing, I went to iTunes to see whether "Try - Nadia Ali" was working. It was. So in the next song I typed "2". I went to iTunes to see whether that song was working, and again it was. I don't know why these messages keep coming up, but they just came up. So I just quickly hit "1" and then the Enter key, and soon this all was done. And then it gave a report and I went to the library and 95% of my songs do not have an exclamation mark next to them .

    Though my work has been done, I just told this all to you so that you could improve the script if you want to for others. One thing however that I did notice that was common between more than 95% of the songs that this problem occurred with was those that has no Genre. Very few files, if any, which had a Genre came up.

    Anyways, again THANKS ALOT! Finally, I have my library back

Previous Page 2 of 3 last Next