This part of the code was derived from this discussion:
All I needed at that time was have the ability to play a workout video. These workout videos were added to a Plex library as “TV Shows”. But in the directories they didn’t have season subdirectories and the files had ‘title - s0en.m4v’ format.
So, when you look at the Plex data reported for these titles the parent data structure does not have a season title.
Other TV Shows I have on plex in another libraries do have parent data structures with season titles.
I do agree that this component should support a json language that allows for selecting season (optionally) along with episode number.