checks if all files was processed and pyload would idle now, needs fid which will be ignored when counting
(self, fid)
| 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 |
no test coverage detected