MCPcopy Create free account
hub / github.com/pyload/pyload / activate

Method activate

module/plugins/hooks/ClickNLoad.py:45–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.exit_done = threading.Event()
44
45 def activate(self):
46 if not self.pyload.config.get('webinterface', 'activated'):
47 self.log_warning(
48 _("pyLoad's Web interface is not active, ClickNLoad cannot start"))
49 return
50
51 self.pyload.scheduler.addJob(5, self.proxy, threaded=False)
52
53 def deactivate(self):
54 if self.server_running:

Callers

nothing calls this directly

Calls 4

log_warningMethod · 0.80
addJobMethod · 0.80
_Function · 0.50
getMethod · 0.45

Tested by

no test coverage detected