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

Method getPercent

module/PyFile.py:258–266  ·  view source on GitHub ↗

get % of download

(self)

Source from the content-addressed store, hash-verified

256 return 0
257
258 def getPercent(self):
259 """ get % of download """
260 if self.status == 12:
261 try:
262 return self.plugin.req.percent
263 except:
264 return 0
265 else:
266 return self.progress
267
268 def getSize(self):
269 """ get size of download """

Callers 1

statusDownloadsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected