MCPcopy
hub / github.com/pyload/pyload / update

Method update

module/plugins/hooks/UpdateManager.py:145–158  ·  view source on GitHub ↗

Check for updates

(self)

Source from the content-addressed store, hash-verified

143 @Expose
144 @threaded
145 def update(self):
146 """
147 Check for updates
148 """
149 if self._update() != 2 or not self.config.get('autorestart'):
150 return
151
152 if not self.pyload.api.statusDownloads():
153 self.pyload.api.restart()
154 else:
155 self.log_warning(_("pyLoad restart scheduled"),
156 _("Downloads are active, pyLoad restart postponed once the download is done"))
157 self.pyload.api.pauseServer()
158 self.do_restart = True
159
160 def _update(self):
161 newversion = self.server_response(0)

Callers 15

activateMethod · 0.95
periodical_taskMethod · 0.95
mergeMethod · 0.45
parseMethod · 0.45
api_responseMethod · 0.45
api_responseMethod · 0.45
api_responseMethod · 0.45
api_requestMethod · 0.45
api_responseMethod · 0.45
signinMethod · 0.45
get_infoMethod · 0.45
sign_stringFunction · 0.45

Calls 7

_updateMethod · 0.95
log_warningMethod · 0.80
_Function · 0.50
getMethod · 0.45
statusDownloadsMethod · 0.45
restartMethod · 0.45
pauseServerMethod · 0.45

Tested by

no test coverage detected