Skip to content

Commit

Permalink
Merge pull request #725 from meisnate12/bugfix/ShowSpecialsSeason
Browse files Browse the repository at this point in the history
Fix retrieving specials (season 0) for tv shows
  • Loading branch information
JonnyWong16 authored May 10, 2021
2 parents a82030a + c957c4f commit 0117a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plexapi/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def season(self, title=None, season=None):
Raises:
:exc:`~plexapi.exceptions.BadRequest`: If title or season parameter is missing.
"""
key = '/library/metadata/%s/children' % self.ratingKey
key = '/library/metadata/%s/children?excludeAllLeaves=1' % self.ratingKey
if title is not None and not isinstance(title, int):
return self.fetchItem(key, Season, title__iexact=title)
elif season is not None or isinstance(title, int):
Expand Down

0 comments on commit 0117a84

Please sign in to comment.