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.

Any software that can rebuild iTunes songs lost to Unknown Artist/ Unknown Album

iTunes sent 80% of my songs (about 20000 songs of 475GB) into Unknown Artist/ Album folder. My songs were ripped in .WAV and .AIFF formats and residing in 1.5 TB external hard disk. I realise how to rebuild them manually (through 'locate and search' but it will take eternity to complete. I don’t have backup copy of my music file and I can’t re-import (ripping) them from the CDs.

Is there software that can rebuild songs from this Unknown artist/ album folder back to the Artist/Album folders on iTunes Media/Music/.... (or to any specified directory/folder).

All my itunes library files, music metadata are intact. Artwork, Album, Artist name and track number and song names, genres etc are showing on itunes GUI. This problem should be technically solvable by a program. Any help or pointer in the right direction will be appreciated.

Posted on Jan 2, 2012 3:17 PM

Reply
45 replies

Jan 6, 2012 7:48 AM in response to turingtest2

The Script worked (it processed and summarised what was done and time taken) but the objective of getting the songs back in the approriate path ...Itunes/itunes Media/ Music/Artist/Album/song... has not been met. When I checked the location of a song that has been linked, it is still in the path Itunes/itunes Media/ Music/Unknown Artist/ Unknown Album/song. Rebuilding songs should link and build. I like to see the songs built back in the Album folder (and Album in Artist folder); and if various Artists are involved, the songs back in the Album folder (and Album folder in Compilations folder). Was the Script designed to do that? Perhaps its just impossible for so and so reason. Thanks.

Jan 6, 2012 9:31 AM in response to turingtest2

OK, here we have an album in my test library in the standard location for it...


User uploaded file


Now I'm going to simulate the disaster by renaming the folder containing the files as Unknown Artist\Unknown Album. Note how each track now shows the ! for missing tracks.


User uploaded file


Next I select the 12 tracks and run the FindTracks script.


User uploaded file


I've clicked No on the first prompt so that I can get track by track confirmation. Next I check that the correct path has been assumed for the media folder to be searched. Note this must be a parent folder of where the files actually are. The script may not guess this initial value correctly if content is split over multiple paths/drives instead of the standard iTunes layout.


User uploaded file


The script will search the following potential locations for each track:

  • <Media Folder>
  • <Media Folder>\<Album Artist>
  • <Media Folder>\<Album Artist>\<Album>
  • <Media Folder>\<Artist>
  • <Media Folder>\<Artist>\<Album>
  • <Media Folder>\<Album>
  • <Media Folder>\Compilations\<Album>
  • <Media Folder>\Music
  • <Media Folder>\Music\<Album Artist>
  • <Media Folder>\Music\<Album Artist>\<Album>
  • <Media Folder>\Music\<Artist>
  • <Media Folder>\Music\<Artist>\<Album>
  • <Media Folder>\Music\<Album>
  • <Media Folder>\Music\Compilations\<Album>
  • <Media Folder>\Music\Unknown Artist\Unknown Album
  • <Media Folder>\Unknown Artist\Unknown Album

With optimizations when <Album>=<Album Artist>=<Artist>. For all searches outside of the Unknown Artist\Unknown Album folder there is a fuzzy matching mechanism which can cope with, for example, longer/truncated file & folder names or different filename character substitutions. Other types of media will be searched for in their usual locations relative to the media folder.

(Note to self: Add in ability to cope with missing track numbers)


Having confirmed the media location the script comes back with the first proposed correction. Yes will update the location of the track, No will skip that track, and Cancel aborts the script.


User uploaded file


After all the tracks have been processed, or you press Cancel, there is a summary of the activity. Obviously confirming each track one at a time would be boring so once you've proved the script is effective it is time to run it on larger groups of files in automatic mode which will display a progress bar so you can see that it is still working. If you close the progress bar the script will safely complete its current operation and then offer to abort or resume.


User uploaded file


tt2

Jan 6, 2012 8:49 AM in response to thelovelyman

thelovelyman wrote:


The Script worked

Good to know. 🙂

... but the objective of getting the songs back in the approriate path ...Itunes/itunes Media/ Music/Artist/Album/song... has not been met.

Hmm, either you neglected the second bolded action from this part of my instructions...

I strongly recommend you disable the option to "Keep iTunes Media folder organized" for now. You can re-enable it once the script has done its work so that iTunes can reorganize the files back in their proper folders, then disable it again to avoid a similar problem in future.

... or the Unknown Artist\Unknown Album folder in question is not inside the currently designated iTunes Media folder.


Again ConsolidateByMoving can do much the same reorganization as iTunes would do, albeit more slowly, however it really scores when you want to move content into the media folder without leaving copies behind, or want to move the files out of the normal media folder, say Movies to a different external drive with spare room, or just want to avoid the kind of accident that you experienced at the outset...


tt2

Jan 14, 2012 7:47 PM in response to turingtest2

hi tt2.


Whatever criteria Soundex uses, its not smart enough. I limited the search to Unknown Artist\Unknown Album as you suggested, it made no difference.


I manage to rebuild the songs manually and this time around a whole album is rebuilt when a song is rebuilt... i guess that came about as a result of deselecting the ' Keep files organised' before rebuilding. Thanks to you on that.


Unfortunately they are still in: iTunes\iTunes Media\Artsist\Album\

instead of: iTunes\iTunes Media\ Music\Artist\Album

.

They should be in Music folder. Any suggestion?

May 30, 2014 5:01 AM in response to turingtest2

tt2


I downloaded the latest version of the script. I continue to get the error, Line 508.


Here's a shot of ITunes before the run:User uploaded file


Here's a shot of the Explorer file location of the actual song file:

User uploaded file


Here's a shot of the Script run:

User uploaded file


And here's a shot of the error:

User uploaded file


Might it have something to do with the various file locations and expectations of the script?


Much thanks in advance,

Dow

May 30, 2014 8:06 AM in response to dowfrommd

Are you sure you got a fresh copy of the script? Line 508 in the current version reads:


MsgBox "The function ""ExtFromKind"" needs updating to generate correct the extension for files of type:" & nl & K,0,Title


No mention of a variable T in that line so it ought not be possible for it to throw that error. (Although I see I need to swap two words around in that output! 😮)


Grab a fresh copy from this direct link: FindTracks

Line 4 should read: Version 1.0.1.14 - May 30th 2014


The second image doesn't reveal the full path to that folder, but assuming it is F:\Don New Itunes\iTunes\iTunes Music\Music\Unknown Artist\Unknown Album then that you have the correct media folder shown in the third image. The script should be capable of locating the files in the \Music\Unknown Artist\Unknown Album subfolder and matching on the basis of track number, name & file size.


tt2

Any software that can rebuild iTunes songs lost to Unknown Artist/ Unknown Album

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