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
Question marked as Top-ranking reply

Posted on Jan 6, 2012 9:31 AM

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

45 replies
Sort By: 

Jan 3, 2012 10:54 AM in response to thelovelyman

Any chance you could scan through your Unknown Artist\Unknown Album folder looking for duplicates and throw some examples back at me. Filenames that are almost the same as another but end with " 1.<ext>", " 2.<ext>" etc. I'm just testing out a modification of my existing FindTracks script which makes it look for missing tracks in the Unknown Artist\Unknown Album folder as well as the usual locations. There's some fuzzy matching logic that needs fine tuning and it might help to see some real world examples.


tt2

Reply

Jan 3, 2012 11:29 AM in response to thelovelyman

Hmm, 20,000 songs in the one folder yes? I'll definately need to change the way the script looks for matches. Currently it processes every file name in the folder generating a fuzzy matching pattern. The overhead for testing a dozen files in the same folder isn't that great but 20,000 would be prohibitive.


tt2

Reply

Jan 3, 2012 4:31 PM in response to turingtest2

Thanks for your time.


Have you tried to rebuild (ie. play) any song having exclamation ! mark against it? Give it a try. That's if you have not deleted the Unknown Artist/Unknown album folder. You will be able to play the rebuilt song but will still have the directory as Letter:/Unknown Artist/Unknown Album/Songname.wav. The fact that it can be played suggests it can be rebuilt into its Artist/Album folder which is still showing on the itunes GUI (hence in the itunes library database)


How to play the song:

Click on the song having ! mark

It will ask if you want to locate the song. Click yes.

Locate the folder form Computer/User/... Music/Unknown...

Search for the song by its name (a few letters may be enough).

Hover over the song to ensure it has same size (kB or MB) and track lenght with that itunes GUI.

Double click on the song. The ! marks dissappears and it will start playing.

Note that using 'Get Info' shows that the song is now located on Letter:/Unknown Artist/Unknown/Songname.wav folder

The song is lost again when you close itunes.


I dont think duplicate song (e.g love1.wav and love2.aiff) can pose much problem. RINSE and TUNEUP trial version program have given logic on how to eliminate duplicates.


Note: if you hover on some songs in the Unknown folder there can be a difference of 0.01 sec in track length of same song in the iTunes GUI.



Itunes organised RULE is a combination of :

iTunes/iTunes Media/Music/Artist Name/Album Name/songs

AND

Itunes/Itunes Media/Music/Compilations/Album/songs.. (for Album that has more than one ARTISTS)


The LOST song destination is:

Itunes/iTunes Media/Music/UNKNOWN ARTIST/ UNKNOWN ALBUM/songs (same applies for Compilation albums)


The song is not actually lost. It is simply not organised into the rule which itunes will naturally play.

Reply

Jan 6, 2012 6:45 AM in response to turingtest2

Thanks for the Scripts. The FindTracks did not rebuild the path; its still in the Itunes/Itunes Media/Unknown Artist/ Unknown Album/songs


The objective is to link the song to the Artist and Album which are still showing on the itunes GUI. Is there something I'm missing in the implementation?

Reply

Jan 6, 2012 6:54 AM in response to thelovelyman

Hi. Perhaps I'm not very good at explaining how the script is supposed to be operated for it to work, or my assumptions about where the files are and what file names they will have are way off. Give me a little time and I'll throw up some screenshots of my test scenario.


tt2

Reply

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.

Reply

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

Reply

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?

Reply

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

Reply

May 30, 2014 2:57 PM in response to turingtest2

That did it! Thanks! The files are (almost) all connected back to their associated entries in Unknown Artist Unknown Album.


Per your info above, all I need to do to get folders created for artists and albums is to re-enable "Keep iTunes Media folder organized" or use ConsolidateByMoving,right?


Thanks again, awesome job!

Reply

Sep 2, 2016 5:11 AM in response to turingtest2

Thanks, tt2. I was able to download the script and run it, but it only found 241 out of 4343 tracks (iTunes says there are 4454 tracks missing even after the script found some). I made sure the “Keep iTunes Medial Folder Organized” option was not checked. The folder path in my iTunes preferences is set to C:\Users\~\Music\iTunes. The folder structure for the songs I am attempting to find is iTunes\Music. The script seemed to find most of the songs in the Artists folders that are sitting directly in the Music folder (iTunes\Music\Artists\Albums), but I also have two other folders labeled CDs MP3 and Other Music Folders that contain the majority of my music. The file paths for these folders are iTunes\Music\CDs MP3\Artists and iTunes\Music\Other Music Folders\[Various Folders]\Artists. The script doesn’t appear to be finding any songs from these two folders. Am I doing something wrong with running the script? My understanding from your instructions was that the script should find songs that are in any sub-folder of the folder being searched. Do I need to move the songs in those two large folders to a different location?


Also, in case it matters I have just copied these files from an external hard drive on to a new computer, which is why iTunes can’t find most of them. Additionally, the files were running on a Mac, but my new computer is a PC.


Here is an example of what iTunes is showing for the location of a song vs. the actual location.


iTunes path: File:///Volumes/Seagate Backup Plus Drive/Music/iTunes Media Folder/Music/Beastie Boys/Ill Communication/01 Sure Shot.mp3


Actual file location: iTunes\Music\CDs MP3\Beastie Boys\Ill Communication\01-Sure Shot.mp3


Any additional guidance would be appreciated.


Thanks.

GoA

Reply

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.