Skip to content

Commit 074a632

Browse files
committed
Fix for episode not containing seasonNumber attribute
1 parent 77a2234 commit 074a632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def episode(self, title=None, episode=None):
468468
key = '/library/metadata/%s/children' % self.ratingKey
469469
if title:
470470
return self.fetchItem(key, title=title)
471-
return self.fetchItem(key, seasonNumber=self.index, index=episode)
471+
return self.fetchItem(key, parentIndex=self.index, index=episode)
472472

473473
def get(self, title=None, episode=None):
474474
""" Alias to :func:`~plexapi.video.Season.episode()`. """

0 commit comments

Comments
 (0)