Fix Show.season(0) not returning 'Specials'

This commit is contained in:
gstacks13 2019-02-07 02:24:00 -06:00
parent 5980abe956
commit 58862b74ba

View file

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