Tuesday, May 28, 2013

Importing Playlists into iTunes


I had many duplicate songs on my computer. In the past I had ignored them but decided that it was time to finally clean it up. So I opened up windows explorer and started deleting duplicate songs, generally picking the file that had a higher bitrate if applicable. Now a week later I open up itunes and discovered that iTunes did not know that these songs were deleted and was still showing them. However there was no way that I could find that would force it itunes to recognize that a file was missing, other than actually trying to play the song. Now I had just gone through one at a time and removed the duplicate songs in windows explorer, I was not going to do it again in iTunes.

After some searching I discovered that itunes creates a XML and .ITL file that stores this info. I tried deleting the XML file but no luck. So I exported my current playlists to .m3u files and deleted the .itl file also. Now this time when I loaded up itunes it went through and found all of my songs, this time without the duplicates. It also automatically picked up my playlists, or so I thought.

The play lists were empty. Thinking something weird happened I deleted the playlists and manually imported .m3u files I just created.
Same issue.
Annoyed I took to Google and found this link. So even though I had just created the m3u files with itunes minutes before, itunes is unable to read its own file! This was because while the C drive is where I store many applications, it is only a small SSD so all of the actual songs go to the E drive(a 1 TB HDD). The screenshot below shows how the .m3u originally looked.




So while those are valid file paths, iTunes doesn't like them. So I created copies of the m3u files and did some find and replace using notepad++(great app if you don't already have it).
 I had to do two separate updates. One to replace E: with file"//localhost/E: and the other to change \ to /.

 and
 


Now that same files  looks like:

 And once I imported it back into iTunes everything worked as planned. (except for one large playlist that I think had a character that iTunes didn't like. Still not sure which one it is, but I had another copy I was able to use instead)

















No comments:

Post a Comment