Server Version#: Version 1.13.6.5339
Player Version#: N/A
Currently when seasons are hidden, either at the library level or at the show level, the parentRatingKey and parentKey are removed from the episode’s XML metadata. A new skipParent key is included when seasons are hidden.
I believe that the parentRatingKey and parentKey should be included regardless of the “hide seasons” setting. All the other “parent” keys (parentTitle, parentThumb, and parentIndex) are still included when seasons are hidden.
I understand that when season are hidden the show level goes straight to the episode level (grandparent to child), but I see no reason to remove the parentRatingKey. The skipParent key should be used to indicate whether the show level should skip to the episode level.
Sample episode XML metadata when seasons are shown:
<Video ratingKey="210094" key="/library/metadata/210094" parentRatingKey="210093" grandparentRatingKey="210092" guid="com.plexapp.agents.thetvdb://318408/1/1?lang=en" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" type="episode" title="Islands" grandparentKey="/library/metadata/210092" parentKey="/library/metadata/210093" grandparentTitle="Planet Earth II" parentTitle="Season 1" contentRating="TV-G" summary="Remote islands offer sanctuary for some of the planet's strangest and rarest creatures. The rare pygmy three-toed sloth enjoys a peaceful existence on an idyllic Caribbean island, while nesting albatross thrive in predator-free isolation. But island life always comes at a cost. On the Galapagos Islands, young marine iguana must escape an onslaught of deadly racer snakes the moment they hatch from the sand. On the sub-Antarctic island of Zavodovski, life gets more extreme still. Every day, one and a half million penguins risk being battered against the rocks by fierce waves as they try to get on and off the island." index="1" parentIndex="1" rating="9.8" year="2016" thumb="/library/metadata/210094/thumb/1494090759" art="/library/metadata/210092/art/1494090760" parentThumb="/library/metadata/210093/thumb/1494090760" grandparentThumb="/library/metadata/210092/thumb/1494090760" grandparentArt="/library/metadata/210092/art/1494090760" grandparentTheme="/library/metadata/210092/theme/1494090760" duration="3515040" originallyAvailableAt="2016-11-06" addedAt="1478559386" updatedAt="1494090759" chapterSource="media">
Sample episode XML metadata when seasons are hidden:
<Video ratingKey="210094" key="/library/metadata/210094" skipParent="1" grandparentRatingKey="210092" guid="com.plexapp.agents.thetvdb://318408/1/1?lang=en" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" type="episode" title="Islands" grandparentKey="/library/metadata/210092" grandparentTitle="Planet Earth II" parentTitle="Season 1" contentRating="TV-G" summary="Remote islands offer sanctuary for some of the planet's strangest and rarest creatures. The rare pygmy three-toed sloth enjoys a peaceful existence on an idyllic Caribbean island, while nesting albatross thrive in predator-free isolation. But island life always comes at a cost. On the Galapagos Islands, young marine iguana must escape an onslaught of deadly racer snakes the moment they hatch from the sand. On the sub-Antarctic island of Zavodovski, life gets more extreme still. Every day, one and a half million penguins risk being battered against the rocks by fierce waves as they try to get on and off the island." index="1" parentIndex="1" rating="9.8" year="2016" thumb="/library/metadata/210094/thumb/1494090759" art="/library/metadata/210092/art/1494090760" parentThumb="/library/metadata/210093/thumb/1494090760" grandparentThumb="/library/metadata/210092/thumb/1494090760" grandparentArt="/library/metadata/210092/art/1494090760" grandparentTheme="/library/metadata/210092/theme/1494090760" duration="3515040" originallyAvailableAt="2016-11-06" addedAt="1478559386" updatedAt="1494090759" chapterSource="media">
