mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Allow specials.
This commit is contained in:
parent
f2e7e891cb
commit
3526b8cdeb
1 changed files with 2 additions and 2 deletions
|
@ -500,9 +500,9 @@ class Show(Video):
|
|||
:exc:`~plexapi.exceptions.BadRequest`: If title or season parameter is missing.
|
||||
"""
|
||||
key = '/library/metadata/%s/children' % self.ratingKey
|
||||
if title and not isinstance(title, int):
|
||||
if title is not None and not isinstance(title, int):
|
||||
return self.fetchItem(key, Season, title__iexact=title)
|
||||
elif season or isinstance(title, int):
|
||||
elif season is not None or isinstance(title, int):
|
||||
idx = season or title
|
||||
return self.fetchItem(key, Season, index=idx)
|
||||
raise BadRequest('Missing argument: title or season is required')
|
||||
|
|
Loading…
Reference in a new issue