mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 21:08:27 +00:00
Merge pull request #341 from gstacks13/fix_show_episode_season_0
Fix show.episode() not allowing season 0
This commit is contained in:
commit
b25d837421
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class Show(Video):
|
|||
if title:
|
||||
key = '/library/metadata/%s/allLeaves' % self.ratingKey
|
||||
return self.fetchItem(key, title__iexact=title)
|
||||
elif season and episode:
|
||||
elif season is not None and episode:
|
||||
results = [i for i in self.episodes() if i.seasonNumber == season and i.index == episode]
|
||||
if results:
|
||||
return results[0]
|
||||
|
|
Loading…
Add table
Reference in a new issue