MCPcopy
hub / github.com/pyload/pyload / updateFileInfo

Method updateFileInfo

module/database/FileDatabase.py:519–523  ·  view source on GitHub ↗

updates file info (name, size, status, url)

(self, data, pid)

Source from the content-addressed store, hash-verified

517
518 @change
519 def updateFileInfo(self, data, pid):
520 """ updates file info (name, size, status, url)"""
521 ids = self.db.updateLinkInfo(data)
522 e = UpdateEvent("pack", pid, "collector" if not self.getPackage(pid).queue else "queue")
523 self.core.pullManager.addEvent(e)
524
525 def checkPackageFinished(self, pyfile):
526 """ checks if package is finished and calls hookmanager """

Callers 1

updateDBMethod · 0.80

Calls 4

getPackageMethod · 0.95
UpdateEventClass · 0.90
updateLinkInfoMethod · 0.80
addEventMethod · 0.45

Tested by

no test coverage detected