Skip to content
Browse files

Fix single episode grabber for season 0 specials.

This makes the check for arguments to grabInetref() look specifically
for None, rather than boolean False, to prevent false positives when
dealing with specials that have a season of 0.
(cherry picked from commit 7da754a)
  • Loading branch information...
1 parent 139bd59 commit 380076192d0a0945c8489cba851537fde75b21e4 @wagnerrp wagnerrp committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/bindings/python/MythTV/system.py
View
4 mythtv/bindings/python/MythTV/system.py
@@ -385,12 +385,12 @@ def grabInetref(self, inetref, season=None, episode=None):
this method will return a fully populated object.
"""
try:
- if inetref.season and inetref.episode:
+ if (inetref.season is not None) and (inetref.episode is not None):
args = (inetref.inetref, inetref.season, inetref.episode)
else:
args = (inetref.inetref,)
except:
- if season and episode:
+ if (season is not None) and (episode is not None):
args = (inetref, season, episode)
else:
args = (inetref,)

0 comments on commit 3800761

Please sign in to comment.
Something went wrong with that request. Please try again.