'Check if result is valid according to white/blacklist for current show
:param result: Result to analyse
:return: False if result is not allowed in white/blacklist, True if it is'

def is_valid(self, result):

    if (self.whitelist or self.blacklist):
        if (not result.release_group):
            sickrage.srCore.srLogger.debug(u'Failed    to    detect    release    group')
            return False
        if (result.release_group.lower() in [x.lower() for x in self.whitelist]):
            white_result = True
        elif (not self.whitelist):
            white_result = True
        else:
            white_result = False
        if (result.release_group.lower() in [x.lower() for x in self.blacklist]):
            black_result = False
        else:
            black_result = True
        sickrage.srCore.srLogger.debug((u'Whitelist    check    passed:    %s.    Blacklist    check    passed:    %s' % (white_result, black_result)))
        if (white_result and black_result):
            return True
        else:
            return False
    else:
        sickrage.srCore.srLogger.debug(u'No    Whitelist    and        Blacklist    defined')
        return True
