This is a LONG solution, but it seems to have worked for me (iTunes 10.6.3, iPad 2 iOS 5.1.1)
To resolve issues where TV Shows do not display in the correct order (or are missing) when using iTunes Sharing with an iPad:
There are so many variables, it is difficult to say which exact tags you need to modify for your given situation, but here is what I have discovered today as I had time to sit down and try to figure it out. I've also noticed unless you have ALL your shows in iTunes set up correctly, you will still have issues viewing them on the iPad (example: I tried organizing just one TV Show that I wanted to watch, but noticed it showed up correctly but others were still in random orders and other shows still didn't show up in the iPad list until I corrected all of them).
TV Shows seem to be sorted by: Show Name, Season, Episode ID/Episode #, then Name.
*I personally find this redundant and confusing, I don't see the point of having both an Episode ID and Episode # since I find I must set them both the same in order to achieve proper sort order on the iPad, but who cares, since it works, right? So, on to the tweaking of the tags.
There is a web site that has an infinite number of very helpful scripts and apps to automate some of these tedious chores; I'm not "Doug" but I'm forever grateful to whomever he is for providing all of these online, and I have been able to successfully use his scripts to create some of my own as well: http://dougscripts.com/itunes/
1. Open iTunes on your computer.
2. Make sure TV Shows are appearing in the TV Shows category (not under Movies).
Solution: Select all TV Shows from within the Movies category, Right-click and Get Info, Options Tab: Change Media Kind to TV Show, Click OK to apply.
3. Click TV Shows in the left pane to see them all in one list.
*I find it helpful to also enable View-Column Browser-Shows so that they sort by Show as well (if you don't have the Show tags labeled yet, don't worry, they will start sorting by Show as you enter the information).
4. Select all episodes of one season of one show (For example: if you have King of the Hill Season 1, hilight Episodes 1-12).
5. Right-click, Get Info and modify the following tags (verify the box next to each has been checked, meaning all your selected items will have the same information applied to them)
Info Tab:
verify Genre is TV Show
Video Tab:
set Show to the name of the TV Show (ex: The Big Bang Theory)
set Season Number to the numerical value of the TV Show (ex: 1)
Sorting Tab:
set Sort Album to appropriate season number
set Sort Show to the name of the TV Show (omitting leading words such as A, An, The to allow proper alphabetical sorting…hence the purpose of the Sorting field options) For example, if the show you are adding is The Big Bang Theory, you would enter Big Bang Theory here, leaving out "The" so that it sorts under "B" for Big instead of "T" for The.
Options Tab:
verify Media Kind is TV Show
optional: designate whether this is part of a compilation, and whether you want iTunes to remember the position you left off watching or if you prefer each show to start from the beginning each time it is played
Click OK to apply these changes.
Now we need to get the numerical order set up properly so that Seasons will contain their Episodes and such.
- Set the Episode Numbers in the proper order for each Season (otherwise, they will be sorted by the Name field, alphabetically, which is pretty useless for watching TV Seasons).
Use Increment Number Tags.app (http://dougscripts.com/itunes/scripts/ss.php?sp=incrementnumbertags) and once you've copied the selected shows for the season to the temporary playlist, enable viewing the Episode ID and Episode Number columns in the playlist so you can verify it is working properly.
- Set the Episode Number to the numerical order of the shows (Episode ID: 1 and Episode #: 1 for the first show in season 1, etc).
Sorry, Doug doesn't have this one on his site, or I couldn't find it, so here's mine: http://stewartlane.com/scripts/EpIDtoEpNum.scpt)
- Remove the episodes from the temporary playlist (don't worry, they'll remain in your library under TV Shows properly numbered in order) and drag the next set of shows for the next season to the temporary playlist
- Repeat until you've renumbered all your episodes for all your seasons for all your shows (yes, this is tedious).
Now open the Videos app on your iPad, and go to Shared and select your Shared Library. Tap TV Shows and provided all the tags are set up properly, you should see just the individual seasons as "albums" and they should be in alpha-numerical order based on what you put in the Sort Show and Sort Album fields, and numerically in order by Episode Number/ID.