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

Method server_response

module/plugins/hooks/UpdateManager.py:124–141  ·  view source on GitHub ↗
(self, line=None)

Source from the content-addressed store, hash-verified

122 return True if self.pyload.pluginManager.reloadPlugins(reloads) else False
123
124 def server_response(self, line=None):
125 try:
126 html = self.load(self.SERVER_URL,
127 get={'v': self.pyload.api.getServerVersion()})
128
129 except Exception:
130 self.log_warning(_("Unable to connect to the server to retrieve updates"))
131
132 else:
133 res = html.splitlines()
134
135 if line is not None:
136 try:
137 res = res[line]
138 except IndexError:
139 res = None
140
141 return res
142
143 @Expose
144 @threaded

Callers 2

_updateMethod · 0.95
update_pluginsMethod · 0.95

Calls 5

log_warningMethod · 0.80
splitlinesMethod · 0.80
_Function · 0.50
loadMethod · 0.45
getServerVersionMethod · 0.45

Tested by

no test coverage detected