mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
Fix Show.season(0) not returning 'Specials'
This commit is contained in:
parent
5980abe956
commit
58862b74ba
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue