コード例 #1
0
ファイル: main.py プロジェクト: Bart1983/CouchPotatoServer
    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'])
コード例 #2
0
ファイル: main.py プロジェクト: w00druff/CouchPotatoServer-de
    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'])
コード例 #3
0
ファイル: main.py プロジェクト: EchelonFour/CouchPotatoServer
 def isEnabled(self):
     return self.conf('enabled') and TorrentProvider.isEnabled(self)