MCPcopy
hub / github.com/pyload/pyload / _set_xfs_cookie

Method _set_xfs_cookie

module/plugins/internal/XFSCrypter.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'
34
35 def _set_xfs_cookie(self):
36 cookie = (self.PLUGIN_DOMAIN, "lang", "english")
37 if isinstance(self.COOKIES, list) and cookie not in self.COOKIES:
38 self.COOKIES.insert(cookie)
39 else:
40 set_cookie(self.req.cj, *cookie)
41
42 def _prepare(self):
43 if not self.PLUGIN_DOMAIN:

Callers 1

_prepareMethod · 0.95

Calls 2

set_cookieFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected