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