Example #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'])
Example #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'])
Example #3
0
 def isEnabled(self):
     return self.conf('enabled') and TorrentProvider.isEnabled(self)