def isEnabled(self, host = None): # Return true if at least one is enabled and no host is given if host is None: for host in self.getHosts(): if self.isEnabled(host): return True return False return NZBProvider.isEnabled(self) and host['host'] and host['api_key'] and int(host['use'])
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf('username') and self.conf('api_key')
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf('enabled')
def isEnabled(self, host): return NZBProvider.isEnabled(self) and host['host'] and host['api_key'] and int(host['use'])
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf('enabled') and self.conf('username') and self.conf('password')
def isEnabled(self, host): return NZBProvider.isEnabled( self) and host['host'] and host['api_key'] and int(host['use'])
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf( 'username') and self.conf('api_key')
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf( 'enabled') and self.conf('username') and self.conf('password')
def isEnabled(self): return NZBProvider.isEnabled(self) and self.conf("username") and self.conf("api_key")
def isEnabled(self, host): return NZBProvider.isEnabled(self) and host["host"] and host["api_key"] and int(host["use"])