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

rebuild iTunes library

My question is this:

What is the easiest way to re-build you music library in iTunes ?

My problem is this:

I use a few different programs to rip and edit, Pyro for ripping and editing tags and mediacenter (no slapping please) to get the albumart. If I drag and drop into the library structure Itunes doesn't see it unless I import it 😟 and if I import it now it shows double until I synce and it figures out that the original no longer exist and instead of it deleteing the invalid entry it just tells me that they are there and I have to go delete them one at a time ( a lot of work with a 9 gig library)

So is there a way to safely whack the index and have iTunes rebuilt it after all the tag editing and music is added?

Dell, Windows XP Pro

Posted on Jan 10, 2006 1:38 AM

Reply
7 replies

Jan 10, 2006 9:58 AM in response to LarrE

Reload/update all songs in the library from the file tags (useful if you use another tagging program to make changes to tags): http://ottodestruct.com/itunes/update.txt

From: http://ottodestruct.com/blog/2005/10/20/itunes-javascripts/

Or you could delete the entire Library and rebuild it from the underlying files. Post back and instructions can be provided.

Jan 10, 2006 1:27 PM in response to Buegie

"Or you could delete the entire Library and rebuild it from the underlying files. Post back and instructions can be provided."

I understand that this meens to remove all the library info from iTunes library but NOT the acctual files and then import and let it rebuild. If thats true, thats what I would like to do since I have a lot of ripping/tagging left to do. That way I can do all my work and do that as a final step.

How do you do this ?

(I also took a look at your links, I have no idea how to use scripts 😟 )

Jan 10, 2006 2:23 PM in response to LarrE

"I also took a look at your links, I have no idea how to use scripts" User uploaded file

Right from Otto's main page via the second link I gave you...
To use any of them, just download them, rename them to a *.js file, then run them like any other program (double click, select and press enter, type the name from a command prompt, etc). If you have all the defaults in XP or have the Windows Scripting Host installed on other Windows boxes, then the wscript.exe program actually runs the scripts, much like cmd.exe runs batch files. Same idea, anyway. The scripts connect to iTunes as a COM object and use it in that fashion. Works really well and is quite handy for scripting tasks in iTunes. Yeah, it doesn’t actually integrate or anything, but it’s still useful.

-----------------------------------------------------------

‘Refresh/Rebuild’ Your iTunes Library

If you changed your music locations by hand (not allowing iTunes to manage the move), want to remove duplicate song references, or just have confused iTunes too much, these steps will re-initialize your Library for you. Read it completely through and do the small trial run prior to implementing the whole thing:

First, make sure that iTunes is correctly looking in the right Folder for your song files.
--- Make sure you know the current location of your music files (best to confirm this)
--- In iTunes choose: Edit==>Preferences==>’Advanced/General’ tab
--- Select 'Change' and browse to the music folder in your PC drive (if it isn’t already)
--- Click OK to save that setting
-- In iTunes: Edit==>Preferences==>’Advanced/General’ tab.
---- Make sure that the 'Keep iTunes Music folder organized’ box is checked (if you want iTunes to organize your folder structure)
---- Also, that the ‘Copy files to iTunes Music folder when adding to library’ box is unchecked
-- Click ’OK’ to accept and close the Preferences dialogue box.
-- Single click on the "Library" in the Source Pane
-- Single click first track in the Library
-- Select all songs (any one of several ways)
-- Delete – or select ‘Clear’ (yes, delete them all)

There will be 2 dialog boxes that pop up (one at a time). The first one asks ‘Are you sure you want to remove the selected items from the list?’ The second asks if you want the files moved to Recycle Bin or to keep them in the iTunes folder. You DO NOT want to send the files to the recycle bin, so select ‘Keep Files’. This will only delete the song reference links (both valid and broken). It will not delete the actual music files on your hard drive.

IMPORTANT:
Perform a small test of this prior to doing it en mass. If you do not receive both dialogue boxes, then stop and see this link prior to continuing. You will need to reset your iTunes preferences and also retrieve the ‘deletion test’ song files from the Recycle Bin. Scott P.: My Source List is missing (or, resetting the prefs)

Also note: 'Deleting and Restoring' the song references will reset the Play Count, Ratings, Date Added, Last Played, Ratings, and EQ attributes (there may be a few others). It will remove all song references from any Static Playlists you have. Also, any Smart Playlists that depend on any of the aforementioned attributes will be impacted. This may be a small price to pay to recover your Library -- or not.... You can ‘Export’ your Playlists to an XML file for ‘Importing’ after the refresh. This can restore your static playlists. The export only saves the song info, not the underlying music files. Of course, exporting your playlists is to be done before you delete any song references within iTunes.

Once your song references are removed from iTunes, this is how to get them back:
1 - In iTunes: File==>Add Folder to Library
2 - Browse to your main iTunes folder and select it
3 - For multiple music file locations, repeat 1 & 2

Depending on how small/large your music library is, the speed of your computer and your amount of RAM, this could take a few minutes to a few hours.

Your library should now be back to normal.

Jan 11, 2006 6:39 PM in response to Buegie

Or you could delete the entire Library and rebuild it
from the underlying files. <<</div>

Hi!

We have done a lot of work on our library. First of all, we have imported CD's that don't have titles for the tracks or CD Names. So we had to click on GET INFO and manually add the names of the songs and artists names.

We also have a lot of MP3 files in our music folder before we started using an iPod and Itunes to download songs. After installing ITunes, I noticed that ITunes did not seem to include all the files we previously had.

Additinally, When we add a file to the music folder that was not downloaded using Itunes, ITunes does not always see that file and add it to the Library.

So I want to find a way to re-scan the library to look for new files without destroying all the work we did including the custom playlists, and the "Get Info" work we did.

Do you have any ideas how we can do this?

Your help is much appreciated.

Thanks in advance...
The Bikini Browser of Puerto Rico

rebuild iTunes library

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