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

Method getDecryptJob

module/database/FileDatabase.py:338–351  ·  view source on GitHub ↗

return job for decrypting

(self)

Source from the content-addressed store, hash-verified

336
337 @lock
338 def getDecryptJob(self):
339 """return job for decrypting"""
340 if "decrypt" in self.jobCache:
341 return None
342
343 plugins = self.core.pluginManager.crypterPlugins.keys() + self.core.pluginManager.containerPlugins.keys()
344 plugins = str(tuple(plugins))
345
346 jobs = self.db.getPluginJob(plugins)
347 if jobs:
348 return self.getFile(jobs[0])
349 else:
350 self.jobCache["decrypt"] = "empty"
351 return None
352
353 def getFileCount(self):
354 """returns number of files"""

Callers 1

assignJobMethod · 0.80

Calls 3

getFileMethod · 0.95
getPluginJobMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected