We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f351f4 commit 77b1ee7Copy full SHA for 77b1ee7
plexapi/video.py
@@ -332,9 +332,9 @@ def season(self, title=None):
332
Parameters:
333
title (str or int): Title or Number of the season to return.
334
"""
335
- if isinstance(title, int):
336
- title = 'Season %s' % title if title != 0 else 'Specials'
337
key = '/library/metadata/%s/children' % self.ratingKey
+ if isinstance(title, int):
+ return self.fetchItem(key, etag='Directory', index__iexact=str(title))
338
return self.fetchItem(key, etag='Directory', title__iexact=title)
339
340
def episodes(self, **kwargs):
0 commit comments