Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rnickerson

macrumors newbie
Original poster
A while ago, and quite without any kind of warning or message, iTunes stopped putting my purchased TV shows into the TV Shows/[Show Title]/[Season Number]/[Episode file] folder format. Instead it began just dumping the files for both the HD and SD shows straight into the iTunes Music folder making a mess of the whole thing.

I noticed this only because I was moving my library to a larger drive and caught sight of the mess in the Music folder. To remedy the problem I exported a snapshot of my current library into a Library.xml file and created a Java app that will:

1. scan a given folder for any m4v file
2. find the entry for that file in the Library.xml file
3. get the show title and season number from that entry
4. move the m4v into the TV Shows/[Show Title]/[Season Number] folder - making the folders if necessary
5. update the Library.xml file entry with the new m4v file location

This should arrange all of my files on the new drive correctly. Then I plan to start a fresh, clean copy of iTunes, change the library location to the new drive and import the Library.xml file (with all of the newly updated info).

However, while testing the app I noticed it was not processing some of the SD m4v files. It turns of that if an HD file exists for a show then there is no reference anywhere in the Library.xml file to the SD file.

Does anyone know how iTunes deals with these file pairs? I suppose I can just copy these files into the correct folders along with the HD versions and hope for the best. I just wanted to see if anyone could shed some light on the best way to handle this discrepancy. Thanks!

Oh! And any ideas what I can do to keep new show files from getting dumped into the iTunes Music folder? I have the "Keep iTunes Media folder Organized" option checked but it does not seem to be doing its job anymore :-( Thanks again!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.