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

Method getSize

module/PyFile.py:268–276  ·  view source on GitHub ↗

get size of download

(self)

Source from the content-addressed store, hash-verified

266 return self.progress
267
268 def getSize(self):
269 """ get size of download """
270 try:
271 if self.plugin.req.size:
272 return self.plugin.req.size
273 else:
274 return self.size
275 except:
276 return self.size
277
278 def notifyChange(self):
279 e = UpdateEvent("file", self.id, "collector" if not self.package().queue else "queue")

Callers 6

toDbDictMethod · 0.95
formatSizeMethod · 0.95
statusDownloadsMethod · 0.80
hFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected