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

Method checkAllLinksFinished

module/database/FileDatabase.py:368–376  ·  view source on GitHub ↗

checks if all files are finished and dispatch event

(self)

Source from the content-addressed store, hash-verified

366 return self.queuecount
367
368 def checkAllLinksFinished(self):
369 """checks if all files are finished and dispatch event"""
370
371 if not self.getQueueCount(True):
372 self.core.hookManager.dispatchEvent("allDownloadsFinished")
373 self.core.log.debug("All downloads finished")
374 return True
375
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"""

Callers 1

finishIfDoneMethod · 0.80

Calls 2

getQueueCountMethod · 0.95
dispatchEventMethod · 0.80

Tested by

no test coverage detected