Merge pull request #725 from meisnate12/bugfix/ShowSpecialsSeason

Fix retrieving specials (season 0) for tv shows
This commit is contained in:
JonnyWong16 2021-05-09 19:43:12 -07:00 committed by GitHub
commit 0117a84086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,7 +518,7 @@ class Show(Video, AdvancedSettingsMixin, ArtMixin, BannerMixin, PosterMixin, Spl
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):