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

Method _process

module/plugins/internal/MultiHoster.py:62–81  ·  view source on GitHub ↗
(self, thread)

Source from the content-addressed store, hash-verified

60 self.direct_dl = self.DIRECT_LINK
61
62 def _process(self, thread):
63 try:
64 SimpleHoster._process(self, thread)
65
66 except Fail, e:
67 hdict = self.pyload.pluginManager.hosterPlugins.get(self.pyfile.pluginname, {})
68 if self.config.get('revert_failed', True) and hdict.get('new_module'):
69 tmp_module = hdict.pop('new_module', None)
70 tmp_name = hdict.pop('new_name', None)
71
72 self.pyfile.plugin = None
73 self.pyfile.initPlugin()
74
75 hdict['new_module'] = tmp_module
76 hdict['new_name'] = tmp_name
77
78 self.restart(_("Revert to original hoster plugin"))
79
80 else:
81 raise
82
83 def handle_premium(self, pyfile):
84 return self.handle_free(pyfile)

Callers

nothing calls this directly

Calls 5

popMethod · 0.80
initPluginMethod · 0.80
_Function · 0.50
getMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected