Skip to content

Commit 7fb01a5

Browse files
committed
Lookup episode/season show() with RatingKeys
1 parent c3e16b2 commit 7fb01a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexapi/video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def get(self, title=None, episode=None):
505505

506506
def show(self):
507507
""" Return this seasons :func:`~plexapi.video.Show`.. """
508-
return self.fetchItem(self.parentKey)
508+
return self.fetchItem(int(self.parentRatingKey))
509509

510510
def watched(self):
511511
""" Returns list of watched :class:`~plexapi.video.Episode` objects. """
@@ -646,7 +646,7 @@ def season(self):
646646

647647
def show(self):
648648
"""" Return this episodes :func:`~plexapi.video.Show`.. """
649-
return self.fetchItem(self.grandparentKey)
649+
return self.fetchItem(int(self.grandparentRatingKey))
650650

651651
def _defaultSyncTitle(self):
652652
""" Returns str, default title for a new syncItem. """

0 commit comments

Comments
 (0)