MCPcopy
hub / github.com/pyload/pyload / getLimit

Method getLimit

module/ThreadManager.py:312–314  ·  view source on GitHub ↗
(self, thread)

Source from the content-addressed store, hash-verified

310 thread = PluginThread.DecrypterThread(self, job)
311
312 def getLimit(self, thread):
313 limit = thread.active.plugin.account.getAccountData(thread.active.plugin.user)["options"].get("limitDL",["0"])[0]
314 return int(limit)
315
316 def cleanup(self):
317 """do global cleanup, should be called when finished with pycurl"""

Callers 1

assignJobMethod · 0.95

Calls 2

getAccountDataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected