From 58ab64c42fa39867a123df2f194edb5ba9239ff8 Mon Sep 17 00:00:00 2001 From: CorpNewt <12772521+corpnewt@users.noreply.github.com> Date: Wed, 13 May 2020 06:15:26 -0500 Subject: [PATCH] Update chunk size per bentaylornz --- Scripts/downloader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/downloader.py b/Scripts/downloader.py index 22b650d..20424e2 100755 --- a/Scripts/downloader.py +++ b/Scripts/downloader.py @@ -90,7 +90,7 @@ class Downloader: response = self.open_url(url, headers) if not response: return None - CHUNK = 16 * 1024 + CHUNK = 1024 * 1024 bytes_so_far = 0 try: total_size = int(response.headers['Content-Length']) @@ -111,7 +111,7 @@ class Downloader: response = self.open_url(url, headers) if not response: return None - CHUNK = 16 * 1024 + CHUNK = 1024 * 1024 bytes_so_far = 0 try: total_size = int(response.headers['Content-Length']) @@ -132,7 +132,7 @@ class Downloader: response = self.open_url(url, headers) if not response: return None - CHUNK = 16 * 1024 + CHUNK = 1024 * 1024 bytes_so_far = 0 try: total_size = int(response.headers['Content-Length'])