コード例 #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
ファイル: main.py プロジェクト: neonrush/CouchPotatoServer
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('username') and self.conf('api_key')
コード例 #3
0
ファイル: main.py プロジェクト: SpLord/CouchPotatoServer
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf('enabled')
コード例 #4
0
ファイル: main.py プロジェクト: CorePoint/CouchPotatoServer
 def isEnabled(self, host):
     return NZBProvider.isEnabled(self) and host['host'] and host['api_key'] and int(host['use'])
コード例 #5
0
ファイル: main.py プロジェクト: geman777/CouchPotatoServer
 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
ファイル: main.py プロジェクト: geman777/CouchPotatoServer
 def isEnabled(self):
     return NZBProvider.isEnabled(self) and self.conf("username") and self.conf("api_key")
コード例 #11
0
ファイル: main.py プロジェクト: EchelonFour/CouchPotatoServer
 def isEnabled(self, host):
     return NZBProvider.isEnabled(self) and host["host"] and host["api_key"] and int(host["use"])