MCPcopy Create free account
hub / github.com/geekcomputers/Python / onProgress

Method onProgress

CliYoutubeDownloader.py:67–72  ·  view source on GitHub ↗
(stream=None, chunk=None, remaining=None)

Source from the content-addressed store, hash-verified

65
66 @staticmethod
67 def onProgress(stream=None, chunk=None, remaining=None):
68 file_downloaded = file_size - (remaining / 1000000)
69 print(
70 f"downloading ... {file_downloaded / file_size * 100:0.2f} % [{file_downloaded:.1f}MB of {file_size:.1f}MB]",
71 end="\r",
72 )
73
74 def main(self):
75 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected