mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +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.
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue