MCPcopy Create free account
hub / github.com/pyload/pyload / _prepare

Method _prepare

module/plugins/crypter/DataHuFolder.py:28–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 NAME_PATTERN = ur'<title>(?P<N>.+?) Let\xf6lt\xe9se</title>'
27
28 def _prepare(self):
29 SimpleCrypter._prepare(self)
30
31 if u'K\xe9rlek add meg a jelsz\xf3t' in self.data: #: Password protected
32 password = self.get_password()
33 if not password:
34 self.fail(_("Password required"))
35
36 self.log_debug(
37 "The folder is password protected', 'Using password: " +
38 password)
39
40 self.data = self.load(
41 self.pyfile.url, post={
42 'mappa_pass': password})
43
44 if u'Hib\xe1s jelsz\xf3' in self.data: #: Wrong password
45 self.fail(_("Wrong password"))

Callers

nothing calls this directly

Calls 5

get_passwordMethod · 0.80
log_debugMethod · 0.80
_Function · 0.50
failMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected