MCPcopy Index your code
hub / github.com/pyload/pyload / init

Method init

module/plugins/hooks/UpdateManager.py:50–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.periodical.start(10)
49
50 def init(self):
51 self.info.update({
52 'pyload': False,
53 'plugins': False,
54 'last_check': time.time()})
55 self.mtimes = {} #: Store modification time for each plugin
56 self.event_map = {'allDownloadsProcessed': "all_downloads_processed"}
57
58 if self.config.get('checkonstart'):
59 self.pyload.api.pauseServer()
60 self.checkonstart = True
61 else:
62 self.checkonstart = False
63
64 self.do_restart = False
65
66 def all_downloads_processed(self):
67 if self.do_restart is True:

Callers

nothing calls this directly

Calls 3

updateMethod · 0.45
getMethod · 0.45
pauseServerMethod · 0.45

Tested by

no test coverage detected