(self)
| 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: |
nothing calls this directly
no test coverage detected