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

Method __init__

module/plugins/internal/Base.py:60–99  ·  view source on GitHub ↗
(self, pyfile)

Source from the content-addressed store, hash-verified

58 return info
59
60 def __init__(self, pyfile):
61 self._init(pyfile.m.core)
62
63 #: Engage wan reconnection
64 self.wantReconnect = False # @TODO: Change to `want_reconnect` in 0.4.10
65
66 #: Enable simultaneous processing of multiple downloads
67 self.multiDL = True # @TODO: Change to `multi_dl` in 0.4.10
68
69 #: time.time() + wait in seconds
70 self.waiting = False
71
72 #: Account handler instance, see :py:class:`Account`
73 self.account = None
74 self.user = None # @TODO: Remove in 0.4.10
75 self.premium = None
76
77 #: Associated pyfile instance, see `PyFile`
78 self.pyfile = pyfile
79
80 #: Holds thread in future
81 self.thread = None
82
83 #: Js engine, see `JsEngine`
84 self.js = self.pyload.js
85
86 #: Captcha stuff
87 #@TODO: Replace in 0.4.10:
88 #_Captcha = self.pyload.pluginManager.loadClass("captcha", self.classname) or Captcha
89 # self.captcha = _Captcha(pyfile)
90 self.captcha = Captcha(pyfile)
91
92 #: Some plugins store html code here
93 self.data = ""
94
95 #: Dict of the amount of retries already made
96 self.retries = {}
97
98 self.init_base()
99 self.init()
100
101 def _log(self, level, plugintype, pluginname, messages):
102 log = getattr(self.pyload.log, level)

Callers

nothing calls this directly

Calls 4

init_baseMethod · 0.95
CaptchaClass · 0.90
_initMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected