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

Method checkAllLinksProcessed

module/database/FileDatabase.py:378–389  ·  view source on GitHub ↗

checks if all files was processed and pyload would idle now, needs fid which will be ignored when counting

(self, fid)

Source from the content-addressed store, hash-verified

376 return False
377
378 def checkAllLinksProcessed(self, fid):
379 """checks if all files was processed and pyload would idle now, needs fid which will be ignored when counting"""
380
381 # reset count so statistic will update (this is called when dl was processed)
382 self.resetCount()
383
384 if not self.db.processcount(1, fid):
385 self.core.hookManager.dispatchEvent("allDownloadsProcessed")
386 self.core.log.debug("All downloads processed")
387 return True
388
389 return False
390
391 def resetCount(self):
392 self.queuecount = -1

Callers 1

checkIfProcessedMethod · 0.80

Calls 3

resetCountMethod · 0.95
processcountMethod · 0.80
dispatchEventMethod · 0.80

Tested by

no test coverage detected