AudioCircle

Audio/Video Gear and Systems => The Apple Core => Topic started by: studley on 22 Mar 2009, 09:51 pm

Title: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: studley on 22 Mar 2009, 09:51 pm
Help!  I've done something and I don't know what but most of the songs in my library have an exclamation mark against them and if I click on them it says the song file can't be found.  All my music is on a separate hard disk and is still there safe and sound (cos my Squeezebox can still stream them) but for some reason itunes can no longer "see" the files.

Is there a cure?

PS.  I've made sure that in Preferences > Advanced the location of my itunes music folder is coreectly set for the external disk.
Title: Re: can't find songs!
Post by: Crimson on 22 Mar 2009, 11:21 pm
Somehow your library index file got corrupted. From within iTunes, delete ALL the songs in your library but DO NOT move to trash when asked. Once done, click File -> Add to Library and point to the folder on your drive that contains all artist sub-folders, click OK. It'll re-index your library.

Edit: I'd like to make this a sticky topic as it comes up from time to time.
Title: Re: can't find songs!
Post by: srb on 22 Mar 2009, 11:27 pm
You might first try and 'Change' the iTunes folder location and reselect your external drive & folder, even if it is showing the 'correct' location.

Steve
Title: Re: can't find songs!
Post by: Watson on 22 Mar 2009, 11:28 pm
Somehow your library index file got corrupted. From within iTunes, delete ALL the songs in your library but DO NOT move to trash when asked. Once done, click File -> Add to Library and point to the folder on your drive that contains all artist sub-folders, click OK. It'll re-index your library.

Edit: I'd like to make this a sticky topic as it comes up from time to time.

This works, but be aware that if you do this, you will lose some of your metadata, including play counts, "last played", and ratings. This information is stored in the iTunes database, not in the ID3 tags.
Title: Re: can't find songs!
Post by: Crimson on 22 Mar 2009, 11:29 pm
Somehow your library index file got corrupted. From within iTunes, delete ALL the songs in your library but DO NOT move to trash when asked. Once done, click File -> Add to Library and point to the folder on your drive that contains all artist sub-folders, click OK. It'll re-index your library.

Edit: I'd like to make this a sticky topic as it comes up from time to time.

This works, but be aware that if you do this, you will lose some of your metadata, including play counts, "last played", and ratings. This information is stored in the iTunes database, not in the ID3 tags.

You are quite correct. Thanks for bringing it up.
Title: Re: can't find songs!
Post by: studley on 22 Mar 2009, 11:52 pm


This works, but be aware that if you do this, you will lose some of your metadata, including play counts, "last played", and ratings. This information is stored in the iTunes database, not in the ID3 tags.

That's fine, I don't use that data.  Big breath and I'll give it a try.  TIA!

Steve: already tried that thanks, no good I'm afraid.
Title: Re: can't find songs!
Post by: studley on 22 Mar 2009, 11:58 pm
OK I "selected all" and then pressed delete from Edit menu.  A dialogue box came up asking me I am sure I want to "Remove" all the files.

I presume I click Remove (gulp) ?
Title: Re: can't find songs!
Post by: srb on 22 Mar 2009, 11:59 pm
This works, but be aware that if you do this, you will lose some of your metadata, including play counts, "last played", and ratings. This information is stored in the iTunes database, not in the ID3 tags.

As well as any added or modified playlists and customization of fields and field order in each folder view.

I re-read the original post and now realized it said MOST songs, but apparently not all, so the re-slection of the library path won't help.

Re-indexing is probably the answer.

If you want to avoid this in the future, you might want to do what I do, which is to run a simple batch file after any updating of iTunes to backup and copy to another location the .itl, .itdb and .xml files located in the iTunes folder in your user profile.

Let us know and good luck!

Steve
Title: Re: can't find songs!
Post by: srb on 23 Mar 2009, 12:02 am
If you say REMOVE, you are removing them from the Library, but another dialog SHOULD then appear, asking if you want to delete them from the iTunes folder and send them to the Recyle Bin, in which case the answer is NO!

Steve
Title: Re: can't find songs!
Post by: studley on 23 Mar 2009, 12:20 am
I tried it with one album and it works!  Many thanks indeed guys.

Now to do everything.
Title: Re: can't find songs!
Post by: Crimson on 23 Mar 2009, 12:36 am
If you want to avoid this in the future, you might want to do what I do, which is to run a simple batch file after any updating of iTunes to backup and copy to another location the .itl, .itdb and .xml files located in the iTunes folder in your user profile.

Great advice. Whether it's a batch file or an Apple script (:D), even manually copying the index files to a backup location can help alleviate this issue.
Title: Re: can't find songs!
Post by: low.pfile on 23 Mar 2009, 12:47 am
If you want to avoid this in the future, you might want to do what I do, which is to run a simple batch file after any updating of iTunes to backup and copy to another location the .itl, .itdb and .xml files located in the iTunes folder in your user profile.

Great advice. Whether it's a batch file or an Apple script (:D), even manually copying the index files to a backup location can help alleviate this issue.

I was just thinking about an Apple Core FAQ item: How to (manually or auto) back up Playlists for iTunes.

I know it is one of the 'library', 'database' or 'xml' files. Not too long ago, I temporarily lost my Playlists but was able to recover. It took a bit of trial and error, I replaced the related files mentioned using a back up file - but I've since forgotten. Losing my playlists would be a pain as I am starting to use them regularly.

ed
Title: Re: can't find songs!
Post by: Crimson on 23 Mar 2009, 09:32 am
Ed,

The playlists (as well as all other iTunes-specific info (play count, rating, etc.)) are stored in the iTunes Music Library.xml file in the User>Music>iTunes folder. As a matter of routine, it's wise to backup this file (as well as all other files in the iTunes folder) as part of a backup job.
Title: Re: can't find songs!
Post by: low.pfile on 23 Mar 2009, 03:27 pm
Thanks Crimson!
Title: Re: can't find songs!
Post by: studley on 23 Mar 2009, 11:20 pm
It worked.  Many thanks guys, big relief  :D
Title: PLEASE help with hard drive swap with itunes.
Post by: jtwrace on 30 Nov 2010, 03:39 am
Long story short. I copied my drive to use on another computer.

When I plugged my original drive back in after changing the directory to test the old drive it duplicated the tracks. What a mess!

Luckily I use a backup with SuperDuper! so I've restored my drive. The question is this. Itunes seems to cache the display. How can I be sure that this doesn't happen again? I'm not quite sure what my directory was.

What should I do so the same thing doesn't happen?

OK. I think I got the directory back to what it was. Every album shows two songs though.

If I go to the album on the hard drive it is correct.

How do I fix that?

Title: Re: PLEASE help with hard drive swap with itunes.
Post by: Phil A on 30 Nov 2010, 03:58 am
So did you re-import the files into iTunes or did you change where the files are on iTunes to search for? 
Title: Re: PLEASE help with hard drive swap with itunes.
Post by: skunark on 30 Nov 2010, 04:12 am
Close iTunes and restore just the *.itdb and *.xml file in your Music/My Music directories.   As long as the music file location and the original *.xml/*.itdb files are in place it should be simple.   One key thing to note is that where you point iTunes to save the music file is not the location that the iTunes keeps it's book-keeping files.   

If the files are not in the same location as before, your best bet is to delete(move) the itdb/xml file have itunes import the music files mimicking a fresh iTunes library.

You might pop on the Apple forums to get detailed advice/steps on how to migrate the library. 

Title: Re: PLEASE help with hard drive swap with itunes.
Post by: Crimson on 30 Nov 2010, 04:15 am
Click here (http://www.audiocircle.com/index.php?topic=66286.msg609533#msg609533).
Title: Re: can't find songs!
Post by: jtwrace on 30 Nov 2010, 12:20 pm
Thanks Crimson.

Is the music folder normally pointed like this?
desktop > user > myname > music > itunes

or is it usually volume > itunes > music

My problem now is that I can't remember how I had the directory set.

This has turned out to be such a mess as I deleted my HD last night and used the backup.  Well turns out that I'm about 21 albums short somehow.   :duh:  I want to  :cry:
Title: Re: can't find songs!
Post by: Crimson on 30 Nov 2010, 01:09 pm
It's definitely not the former, being as you have an external drive.
Title: Re: can't find songs!
Post by: jtwrace on 30 Nov 2010, 01:27 pm
It's definitely not the former, being as you have an external drive.

Thanks for the thread name change.  It's not fun!

If I use a different directory name, will this affect anything on backup (SuperDuper!) or anything else?  I was trying to put it like it was when I started but thought it was the former.

I'm not at the confuzer now so I'm going by memory.

The left side on the top are the drive(s).

Then under that is applications, users....

I thought I had to click on my name then the HD then music, itunes....

Would you mind posting a screen shot of what you have if you use an external drive?   :dunno:
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 30 Nov 2010, 10:59 pm
Crimson

Why is when I point the directory to my external is starts to add to library then has a message that my Mac Mini HD is too full?  This is really not making sense. 

Please help me!
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 12:09 am
Can anyone help?
I've got the music drive all done now. 

I'm getting a message "library can't be saved your drive is full".  It's says my Mac Mini HD is full.  How is that?  Does it store the artwork on it?
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: srb on 1 Dec 2010, 12:19 am
I don't know if storing artwork is your problem, but my understanding on how and where artwork is stored is:
 
If the artwork is downloaded automatically from the Internet while ripping a CD, the artwork is stored in the iTunes database on your OS/programs/user profile drive.
 
However, if you edit the Song Info and simply cut and re-paste the artwork on the Artwork tab or if you drag artwork in, it will instead be stored within the song file (filetype permitting, i.e. .WAV artwork will always be stored in the iTunes database.)
 
Steve
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 12:39 am
I don't know if storing artwork is your problem, but my understanding on how and where artwork is stored is:
 
If the artwork is downloaded automatically from the Internet while ripping a CD, the artwork is stored in the iTunes database on your OS/programs/user profile drive.
 
However, if you edit the Song Info and simply cut and re-paste the artwork on the Artwork tab or if you drag artwork in, it will instead be stored within the song file (filetype permitting, i.e. .WAV artwork will always be stored in the iTunes database.)
 
Steve

Hmm.  Does this mean that I need a bigger HD for my OS?  It says I have room still.  I have a 120GB SSD and it was fine before all of this.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: Crimson on 1 Dec 2010, 12:54 am
Every time iTunes is started with the external disconnected, iTunes will default to your local HD, even if you've set the path to the external drive.

That said, and from what you're describing, it sounds like the library path has defaulted to the internal drive. ITunes is trying to copy your library over from the external HD because you've enabled the option to keep your library organized in Preferences (which is what you should do), and your library location is local. You're filling up your local HD. You need to delete those files on your local HD, reset your library path to the external (with the external plugged in), and then use Add to library to rebuild the database file.

This is not an artwork issue.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 01:07 am
Every time iTunes is started with the external disconnected, iTunes will default to your local HD, even if you've set the path to the external drive.

That said, and from what you're describing, it sounds like the library path has defaulted to the internal drive. ITunes is trying to copy your library over from the external HD because you've enabled the option to keep your library organized in Preferences (which is what you should do), and your library location is local. You're filling up your local HD. You need to delete those files on your local HD, reset your library path to the external (with the external plugged in), and then use Add to library to rebuild the database file.

This is not an artwork issue.

The external drive has always been plugged in.

In preferences > Advanced I have Keep Itunes Media folder organized and Copy Files to to Itunes Meda folder when adding to library both checked

The iTunes Media folder location is this
/Volumes/Iomega HDD (music)  This is my external HD

My SSD in the mini has 66GB available.  I've deleted what was on it under users > my name > Music > iTunes


Now what?
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 01:29 am
Do I need to go File > Library > Organize Library > Consolidate Files ?
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: srb on 1 Dec 2010, 01:36 am
My SSD in the mini has 66GB available.  I've deleted what was on it under users > my name > Music > iTunes

Did you just delete all of the the Artist/Album folders or did you delete everthing under iTunes, including the .xml .itb and .itl library files, where some of the artwork may be stored?
 
I don't have a Mac, and I don't want to presume everything is exactly the same.  If there is another Mac user who would like to help you (and you trust them!), I have used TeamViewer for remote troubleshooting and desktop control.  It is free for personal use.
http://www.teamviewer.com/download/ (http://www.teamviewer.com/download/)
 
You don't have to actually install it if you don't want to, and can simply run it from the downloaded .exe.  There are Windows, Mac and Linux versions.  As long as you trust the person to give them control of your desktop, it is secure in the fact that you have to give them a newly generated password for each initiated session.
 
In tandem with a voice phone call, I have helped people in a matter of minutes with things that would have taken 50 e-mails.
 
Steve
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 01:37 am
Thanks Steve.

I would gladly call someone for help at this point....anyone?
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 1 Dec 2010, 02:15 am
Thanks Steve.

I would gladly call someone for help at this point....anyone?

guess not.   :cry:
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: jtwrace on 3 Dec 2010, 12:31 pm
This helped me out a bunch.

Close iTunes


Drag the iTunes folder from the Mini HD to the External drive.


Browse to the External drive and open the file named iTunes Library and you're done. Probably located in a folder like this - External\iTunes\iTunes Library


Once you do this you can delete the iTunes folder from your Mini HD.

I learned a very valuable lesson.  Make sure your external HD is ON when opening itunes.  What happend to me is for the last two years many Cd's (~100)were put on the Mini HD and I didn't know it.  Until all of this mess of course.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: Crimson on 3 Dec 2010, 08:06 pm
Quite. See post #26 above.

Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: Johnny2Bad on 28 Feb 2011, 12:03 am
Thanks Crimson.


Is the music folder normally pointed like this?
desktop > user > myname > music > itunes


or is it usually volume > itunes > music


My problem now is that I can't remember how I had the directory set.


This has turned out to be such a mess as I deleted my HD last night and used the backup.  Well turns out that I'm about 21 albums short somehow.     I want to 


iTunes's default location is:
~/Music/iTunes


Note that ~/ is the correct shorthand for /Users/[Your Username]/
and:
/Desktop/Users/[Your Username] ... is incorrect and does not exist, desktop is a folder inside your user directory, found at
/Users/[Your Username]/Desktop


You can set the location of where iTunes stores your music itself at:
iTunes: Preferences: Advanced: iTunes Media Folder Location


The metadata iTunes uses will always be in the iTunes folder in your home directory.


If you are missing music, you can check to see if it's in either the iTunes Media or iTunes Music Files folder also in that directory in your home folder. iTunes will occasionally recreate these folders even if you move them, but if you're not storing music in your home directory they should be empty.


Note however that when you move the default location from there (such as storing music on an external drive) iTunes will on occasion revert to that location if you launch iTunes but the drive is not already mounted (powered off, somewhere else, cable unplugged, laptop used at home and as portable, etc).


This usually also results in iTunes changing the value you set in preferences back to the default location in your home directory, so that is how music you add subsequently ends up in those directories after you've set it to an external drive.


Finally when you install an update to iTunes, always launch iTunes and check the preferences to be sure that the location of the music folder has not reverted to the default location in your user directory. You may have to reset it in iTunes Preferences.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: Johnny2Bad on 28 Feb 2011, 12:27 am
Every time iTunes is started with the external disconnected, iTunes will default to your local HD, even if you've set the path to the external drive.


That said, and from what you're describing, it sounds like the library path has defaulted to the internal drive. ITunes is trying to copy your library over from the external HD because you've enabled the option to keep your library organized in Preferences (which is what you should do), and your library location is local. You're filling up your local HD. You need to delete those files on your local HD, reset your library path to the external (with the external plugged in), and then use Add to library to rebuild the database file.


This is not an artwork issue.


I've never known iTunes to do that. (I'm not sure how it could, since it obviously doesn't know where these files are to copy from). That is why you get the exclamation point warnings when for whatever reason iTunes cannot find your iTunes media and has reverted to the default location in ~/Music/iTunes … if it automatically set about copying files, that could not happen since the files would then be where it expected them to be.


All that happens is new additions to the library get stored there instead of the external drive.


The option 'Copy to iTunes Media Folder' are only invoked when iTunes is installed for the first time, or you yourself add a new file to the library by, say, importing a CD.


The option 'Keep iTunes Library Organized' refers to iTunes organizing music in folders such as /Pink Floyd/The Wall and renaming files with the track number.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: Johnny2Bad on 3 Mar 2011, 10:02 pm
I thought I would mention a much simpler way of fixing a broken music library. For this to work, you must have previously set iTunes to Keep the iTunes folder organized and to Copy files to iTunes library when adding music.

Quit iTunes if it's running. Go to your home folder, and open the iTunes folder (path ~/Music/iTunes ). Create a new folder inside the iTunes parent folder, I call mine "Previous iTunes Libraries".

Drag the relevant iTunes files that comprise the Library metadata, and move them into that folder (path in my example ~/Music/iTunes/Previous iTunes Library). With iTunes v10x the files are "iTunes Library"; plus the files ending in .itdb and .xml

If you like, you can create a subfolder with a date so that you can keep a history of these files if you want (example path ~/Music/iTunes/Previous iTunes Library/[Today's date] ). If you do, place them directly in that subfolder so they don't overwrite anything. Note that you don't need to do anything to the 'Album Artwork' folder, if it exists. Leave it alone.

Also note that you don't want to move your iTunes Music or iTunes Media folders ... the ones that actually contain all the music files. Finally, note that if you haven't set iTunes to organize all your media into those folders this won't work, as that folder won't actually contain all your music.

Now, launch iTunes. You will be greeted with a "dumb" iTunes that acts like it's being opened for the first time. Drag the iTunes Music or iTunes Media folder (as the case may be) into the "Library" portion of the left sidebar (if it's in your home folder, the path would be ~/Music/iTunes/iTunes Media or iTunes Music).

If you keep your iTunes music files on an external drive, be sure to check iTunes preferences at "Advanced" and reset the path to wherever you keep the music before you do this (example path: /Volumes/Music HD/iTunes/iTunes Media or iTunes Music). iTunes will now create a new library containing all the music in that folder, and of course it will be 100% up to date.

It may take a few minutes, but there is a dialog window informing you of what is happening. One annoyance ... the "recently added" playlist will contain every song in your library, at least for a while. Also, you will probably have to reset some preferences, like view options.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: rockn on 15 Dec 2012, 04:12 pm
Does all of this still apply to the new itunes 11 with icloud and everything? All it says now is, Are you sure you want to delete the copies of the selected items. Does not say where it is deleting them to.
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: decal on 15 Dec 2012, 04:30 pm
Ah, the joys of computer audio.  :icon_lol:
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: gilchrist28 on 5 Nov 2013, 10:33 am
Tunes Cleaner is a powerful yet easy to use iTunes cleanup tool, which could act as an iTunes duplicate remover to delete duplicate in iTunes and an iTunes library cleaner tool to clean iTunes library and fix iTunes for completing iTunes music information, like artist, songs, album, and album cover.

http://youtu.be/uXbiifiZDW0
Title: Re: How to fix iTunes dupes, exclamation marks, and other fun stuff.
Post by: phoward on 29 Dec 2014, 09:59 pm
Sometimes when I click on a song in iTunes, another song plays.

For example, I click on "Keith don't go" and "Supernatural" plays.

From the Finder, I can preview "Keith don't go" using the space bar, so the file exists.
But when I try to add the Keith don't go  into iTunes - Supernatural plays.

So I selected Get Info in iTunes for "Keith don't go"  and somehow Carlos Santana is  now credited as the composer.

I deleted that, deleted the file again from iTunes for good measure, and successfully added "Keith don't go" - leading me to believe that my problem is that somehow over the years, upgrades and migrations my metadata has been corrupted.

Not really computer savvy so asking first if I am on the right track?

Second, recommendations on how to fix - willing to do this song by song as it comes up or if folks have had success fixing this type of issue using third party products designed to clean iTunes  or repair metadata. Tunes Cleaner, Supersynch or others.

Thanks in advance and happy new year to all....