Merge pull request #339 from gstacks13/fix_show_season_0

Fix Show.season(0) not returning 'Specials'
This commit is contained in:
Michael Shepanski 2019-02-11 09:16:39 -05:00 committed by GitHub
commit e6ca501610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -333,7 +333,7 @@ class Show(Video):
title (str or int): Title or Number of the season to return. title (str or int): Title or Number of the season to return.
""" """
if isinstance(title, int): if isinstance(title, int):
title = 'Season %s' % title title = 'Season %s' % title if title != 0 else 'Specials'
key = '/library/metadata/%s/children' % self.ratingKey key = '/library/metadata/%s/children' % self.ratingKey
return self.fetchItem(key, etag='Directory', title__iexact=title) return self.fetchItem(key, etag='Directory', title__iexact=title)