mrkjd

Q: Right track -wrong song!

My iTunes library seems to have become partially corrupted. when I click on a track it plays a completely different song. This seems to be the case for several albums. The art work is also wrong. If I navigate to one of the corrupt tracks in finder and play it with iTunes or Quicktime then it plays fine. I have iTunes Match and therefore think this might be behind the corruption when indexing my tracks / albums.

 

Has anybody else had this problem? I have read similar posts but no definitive solution. Basically I think my iTunes Media library is fine so what I need to do is get iTunes to reindex / recompile it's database and get rid of any corrupt files it is referencing thus causing the glitch. I have no idea how to do that or even if it is possible if Match is doing something off-machine in the cloud!

 

A walk-thru on how to reset all iTunes etc with this problem in mind would be welcome

MacBook Pro with Retina display, OS X Yosemite (10.10)

Posted on Jul 8, 2015 9:29 AM

Close

Q: Right track -wrong song!

  • All replies
  • Helpful answers

  • by Limnos,

    Limnos Limnos Jul 8, 2015 11:03 AM in response to mrkjd
    Level 9 (54,635 points)
    Mac OS X
    Jul 8, 2015 11:03 AM in response to mrkjd

    iTunes works through the library file. This contains a line by line list of where a file is, which artwork file (in the artwork folder) to associate with it, and the media information read from it.  Sometimes this can become corrupt.

     

    If this just happened there are various methods to use an old copy of the library file and hope it isn't a consistent error.  In worst case scenario at lest you have your media and you can always rebuild a brand new library from scratch (but lose all playlists, etc.)

     

    iTunes 12.2 "lost " library issue - https://discussions.apple.com/message/28513415#28513415 - seems to work for some

     

    First determine if the media files are still present in the iTunes > Media folder. If they are not you will have to restore them from the backup you of course made of your computer before installing new software, or from their original sources.  If they are still there then try one of the following methods to rebuild the database which tells iTunes what media you have in your collection and where it is.

     

    ASC user turingtest2 help document: Empty/corrupt iTunes library after upgrade/crash - https://discussions.apple.com/docs/DOC-6561

     

    Here are the two main methods. Method 1 does revert your library list (but not media files) to the state it was at the time indicated on the file but all metadata are preserved.  Method 2 may permit using a more recent version (.xml) of your iTunes library than a previous .itl version but you have to be willing to accept loss of some metadata.

     

    1) iTunes: How to re-create your iTunes library and playlists - https://support.apple.com/en-us/HT201561 - These instructions have you open iTunes with an old iTunes library file archived at the time you last updated iTunes.  This will revert your library content list and appearance to what it was at the date indicated on the file. Newer media not in this list will still be in your media folder. You can re-add these by dragging your media folders to the Automatically Add To iTunes folder but they will regarded as brand new items.

     

    A method 1 shortcut that seems to work with more recent iTunes versions - https://discussions.apple.com/message/28484935#28484935 - However, I have not tried this and would want to make sure it didn't start creating additional files and folders inside the "previous libraries" folder that doing things the official way would avoid.

     

    2) If you don't see your content after updating iTunes - https://support.apple.com/en-us/HT203225 - These instructions use a trimmed-down version of your library file to rebuild your primary library file. You lose some metadata (ratings, play count, date added) but the listing should be fairly up to date.