Skip to content

Conversation

@JonnyWong16
Copy link
Collaborator

Description

If seasons are hidden in Plex, parentKey and parentRatingKey are missing from the episode XML response.
https://forums.plex.tv/t/parentratingkey-not-in-episode-xml-when-seasons-are-hidden/300553

This fix tries to parse the parentRatingKey from the parentThumb or falls back to retrieving the season's ratingKey by matching the parentIndex.

Also adds the skipParent attribute to episodes which indicates if seasons are hidden for the show.

Fixes #655

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception error when parentKey is unset in episode metadata

2 participants