Skip to content

Commit 1532d20

Browse files
author
Touchstone64
committed
Fix the mistakes the unit tests inevitably show up
1 parent 31d261b commit 1532d20

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

plexapi/video.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def season(self, title=None, season=None):
710710
Raises:
711711
:exc:`~plexapi.exceptions.BadRequest`: If title or season parameter is missing.
712712
"""
713-
key = self._buildRelationKey(f'{self.key}/children)', excludeAllLeaves=1)
713+
key = self._buildRelationKey(f'{self.key}/children', excludeAllLeaves=1)
714714
if title is not None and not isinstance(title, int):
715715
return self.fetchItem(key, Season, title__iexact=title)
716716
elif season is not None or isinstance(title, int):
@@ -1136,12 +1136,12 @@ def parentThumb(self):
11361136
def _season(self):
11371137
""" Returns the :class:`~plexapi.video.Season` object by querying for the show's children. """
11381138
if self.grandparentKey and self.parentIndex is not None:
1139-
key = f'{self.grandparentKey}/children'
1140-
params = {
1141-
'excludeAllLeaves': 1,
1142-
'index': self.parentIndex
1143-
}
1144-
return self.fetchItem(self._buildRelationKey(key, params))
1139+
key = self._buildRelationKey(
1140+
f'{self.grandparentKey}/children',
1141+
excludeAllLeaves=1,
1142+
index=self.parentIndex
1143+
)
1144+
return self.fetchItem(key)
11451145
return None
11461146

11471147
def __repr__(self):

0 commit comments

Comments
 (0)