mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Merge pull request #339 from gstacks13/fix_show_season_0
Fix Show.season(0) not returning 'Specials'
This commit is contained in:
commit
e6ca501610
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