Permalink
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.
  • Loading branch information...
1 parent fcf6da5 commit 7da754ad0d350988f324c239477a6587bf88ba1c @wagnerrp wagnerrp committed Oct 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/bindings/python/MythTV/system.py
@@ -392,12 +392,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 7da754a

Please sign in to comment.