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

Method restartFile

module/database/FileDatabase.py:413–425  ·  view source on GitHub ↗

restart file

(self, id)

Source from the content-addressed store, hash-verified

411 @lock
412 @change
413 def restartFile(self, id):
414 """ restart file"""
415 if id in self.cache:
416 self.cache[id].status = 3
417 self.cache[id].name = self.cache[id].url
418 self.cache[id].error = ""
419 self.cache[id].abortDownload()
420
421
422 self.db.restartFile(id)
423
424 e = UpdateEvent("file", id, "collector" if not self.getFile(id).package().queue else "queue")
425 self.core.pullManager.addEvent(e)
426
427 @lock
428 @change

Callers 1

restartPackageMethod · 0.95

Calls 5

getFileMethod · 0.95
UpdateEventClass · 0.90
abortDownloadMethod · 0.80
packageMethod · 0.80
addEventMethod · 0.45

Tested by

no test coverage detected