diff --git a/mythtv/bindings/python/MythTV/methodheap.py b/mythtv/bindings/python/MythTV/methodheap.py index e3f17fa0b39..553b8ca51cc 100644 --- a/mythtv/bindings/python/MythTV/methodheap.py +++ b/mythtv/bindings/python/MythTV/methodheap.py @@ -625,9 +625,9 @@ def searchRecorded(self, init=False, key=None, value=None): return ('recorded.%s=%%s' % key, datetime.duck(value), 0) if key == 'olderthan': - return ('recorded.starttime>%s', datetime.duck(value), 0) - if key == 'newerthan': return ('recorded.starttime<%s', datetime.duck(value), 0) + if key == 'newerthan': + return ('recorded.starttime>%s', datetime.duck(value), 0) # recordedprogram matches @@ -641,8 +641,9 @@ def searchRecorded(self, init=False, key=None, value=None): return ('people.name', 'recordedcredits', 4, 1) if key == 'livetv': - if value is None: + if (value is None) or (value == False): return ('recorded.recgroup!=%s', 'LiveTV', 0) + return () return None diff --git a/mythtv/bindings/python/MythTV/static.py b/mythtv/bindings/python/MythTV/static.py index c85a2408137..c6d1704701e 100644 --- a/mythtv/bindings/python/MythTV/static.py +++ b/mythtv/bindings/python/MythTV/static.py @@ -4,7 +4,7 @@ Contains any static and global variables for MythTV Python Bindings """ -OWN_VERSION = (0,24,0,0) +OWN_VERSION = (0,24,0,1) SCHEMA_VERSION = 1264 MVSCHEMA_VERSION = 1038 NVSCHEMA_VERSION = 1007 diff --git a/mythtv/bindings/python/MythTV/utility.py b/mythtv/bindings/python/MythTV/utility.py index a345df5ed5c..9b28a2051d6 100644 --- a/mythtv/bindings/python/MythTV/utility.py +++ b/mythtv/bindings/python/MythTV/utility.py @@ -180,7 +180,9 @@ def parseInp(self, kwargs): raise TypeError(errstr % (self.__name__, key)) res[0] = 'NOT '+res[0] - if len(res) == 3: + if len(res) == 0: + continue + elif len(res) == 3: # normal processing where.append(res[0]) fields.append(res[1])