예제 #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"])