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 TorrentProvider.isEnabled(self) and host['host'] and host['pass_key'] and int(host['use'])
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 TorrentProvider.isEnabled( self) and host['host'] and host['pass_key'] and int(host['use'])
def isEnabled(self): return self.conf('enabled') and TorrentProvider.isEnabled(self)