mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Fix to use _fetchItem instead of _findItem
This commit is contained in:
parent
fcc1248a9b
commit
745feabff9
1 changed files with 3 additions and 3 deletions
|
@ -225,7 +225,7 @@ class Show(Video):
|
|||
raise TypeError('Missing argument: title or season and episode are required')
|
||||
if title:
|
||||
key = '/library/metadata/%s/allLeaves' % self.ratingKey
|
||||
return self._findItem(key, title)
|
||||
return self._fetchItem(key, title=title)
|
||||
elif season and episode:
|
||||
results = [i for i in self.episodes() if i.seasonNumber == season and i.index == episode]
|
||||
if results:
|
||||
|
@ -332,8 +332,8 @@ class Season(Video):
|
|||
|
||||
key = '/library/metadata/%s/children' % self.ratingKey
|
||||
if title:
|
||||
return self._findItem(key, title=title)
|
||||
return self._findItem(key, seasonNumber=self.index, index=num)
|
||||
return self._fetchItem(key, title=title)
|
||||
return self._fetchItem(key, seasonNumber=self.index, index=num)
|
||||
|
||||
def get(self, title):
|
||||
""" Alias for self.episode. """
|
||||
|
|
Loading…
Reference in a new issue