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...
wagnerrp committed Oct 6, 2012
1 parent 139bd59 commit 380076192d0a0945c8489cba851537fde75b21e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/bindings/python/MythTV/
@@ -385,12 +385,12 @@ def grabInetref(self, inetref, season=None, episode=None):
this method will return a fully populated object.
- 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)
args = (inetref.inetref,)
- if season and episode:
+ if (season is not None) and (episode is not None):
args = (inetref, season, episode)
args = (inetref,)

0 comments on commit 3800761

Please sign in to comment.