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

Method prepare

module/plugins/crypter/LinkCryptWs.py:36–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.sources = ['cnl', 'web', 'dlc', 'rsdf', 'ccf']
35
36 def prepare(self):
37 #: Init
38 self.fileid = re.match(self.__pattern__, self.pyfile.url).group('ID')
39
40 set_cookie(self.req.cj, "linkcrypt.ws", "language", "en")
41
42 #: Request package
43 #: Better chance to not get those key-captchas
44 self.req.http.c.setopt(
45 pycurl.USERAGENT,
46 "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko")
47 self.data = self.load(self.pyfile.url)
48 self.data = self.load(self.pyfile.url)
49
50 def decrypt(self, pyfile):
51 if not self.js:

Callers 1

decryptMethod · 0.95

Calls 3

set_cookieFunction · 0.85
matchMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected