From 77b1ee721d252557f7f23ad3ef145f40994e673e Mon Sep 17 00:00:00 2001 From: gstacks13 Date: Thu, 21 Feb 2019 11:56:51 -0600 Subject: [PATCH] Get season from index instead of creating title --- plexapi/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexapi/video.py b/plexapi/video.py index 4b925ea6..b24540a2 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -332,9 +332,9 @@ class Show(Video): Parameters: title (str or int): Title or Number of the season to return. """ - if isinstance(title, int): - title = 'Season %s' % title if title != 0 else 'Specials' key = '/library/metadata/%s/children' % self.ratingKey + if isinstance(title, int): + return self.fetchItem(key, etag='Directory', index__iexact=str(title)) return self.fetchItem(key, etag='Directory', title__iexact=title) def episodes(self, **kwargs):