Skip to content

Commit 88da1e0

Browse files
author
Touchstone64
committed
Move any parent-child query params into the key-building stage
1 parent db9668a commit 88da1e0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plexapi/video.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,9 +1138,10 @@ def _season(self):
11381138
if self.grandparentKey and self.parentIndex is not None:
11391139
key = self._buildRelationalKey(
11401140
f'{self.grandparentKey}/children',
1141-
excludeAllLeaves=1
1141+
excludeAllLeaves=1,
1142+
index=self.parentIndex
11421143
)
1143-
return self.fetchItem(key, index=self.parentIndex)
1144+
return self.fetchItem(key)
11441145
return None
11451146

11461147
def __repr__(self):

0 commit comments

Comments
 (0)