示例#1
0
    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'])
示例#2
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('username') and self.conf('api_key')
示例#3
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('enabled')
示例#4
0
 def isEnabled(self, host):
     return NZBProvider.isEnabled(self) and host['host'] and host['api_key'] and int(host['use'])
示例#5
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('enabled') and self.conf('username') and self.conf('password')
示例#6
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('enabled')
示例#7
0
 def isEnabled(self, host):
     return NZBProvider.isEnabled(
         self) and host['host'] and host['api_key'] and int(host['use'])
示例#8
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf(
         'username') and self.conf('api_key')
示例#9
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf(
         'enabled') and self.conf('username') and self.conf('password')
示例#10
0
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf("username") and self.conf("api_key")
示例#11
0
 def isEnabled(self, host):
     return NZBProvider.isEnabled(self) and host["host"] and host["api_key"] and int(host["use"])