Skip to content

Commit 433e4c4

Browse files
Fix show.episode() not allowing season 0
1 parent 6c6b727 commit 433e4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def episode(self, title=None, season=None, episode=None):
357357
if title:
358358
key = '/library/metadata/%s/allLeaves' % self.ratingKey
359359
return self.fetchItem(key, title__iexact=title)
360-
elif season and episode:
360+
elif season is not None and episode:
361361
results = [i for i in self.episodes() if i.seasonNumber == season and i.index == episode]
362362
if results:
363363
return results[0]

0 commit comments

Comments
 (0)