mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2025-10-29 17:40:15 +00:00
Fixed console prints for Linux
This commit is contained in:
@@ -23,8 +23,9 @@ def dlProgress(count, blockSize, totalSize):
|
|||||||
|
|
||||||
downloadedMbs = int(count*blockSize*(10**(-6)))
|
downloadedMbs = int(count*blockSize*(10**(-6)))
|
||||||
fileSize = int(totalSize*(10**(-6)))
|
fileSize = int(totalSize*(10**(-6)))
|
||||||
sys.stdout.write("\r{}Mb/{}Mb".format(downloadedMbs,fileSize))
|
sys.stdout.write("{}Mb/{}Mb".format(downloadedMbs,fileSize))
|
||||||
sys.stdout.write("\b"*len("\r{}Mb/{}Mb".format(downloadedMbs,fileSize)))
|
sys.stdout.write("\r")
|
||||||
|
# sys.stdout.write("\b"*len("\r{}Mb/{}Mb".format(downloadedMbs,fileSize)))
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
def getExtension(link):
|
def getExtension(link):
|
||||||
|
|||||||
Reference in New Issue
Block a user