From fb142656a8b789a98e2947eb43fb63ec5d5dc0c0 Mon Sep 17 00:00:00 2001 From: unknown <12772521+corpnewt@users.noreply.github.com> Date: Tue, 21 Jan 2025 08:24:13 -0600 Subject: [PATCH] Default allow_resume to False in downloader.py --- Scripts/downloader.py | 2 +- gibMacOS.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/downloader.py b/Scripts/downloader.py index 401eeba..c5b3b40 100755 --- a/Scripts/downloader.py +++ b/Scripts/downloader.py @@ -264,7 +264,7 @@ class Downloader: process.join() return chunk_so_far - def stream_to_file(self, url, file_path, progress = True, headers = None, ensure_size_if_present = True, allow_resume = True): + def stream_to_file(self, url, file_path, progress = True, headers = None, ensure_size_if_present = True, allow_resume = False): response = self.open_url(url, headers) if response is None: return None bytes_so_far = 0 diff --git a/gibMacOS.py b/gibMacOS.py index dc3c25a..e650ea3 100755 --- a/gibMacOS.py +++ b/gibMacOS.py @@ -369,7 +369,7 @@ class gibMacOS: self.u.info("NOTE: Only Downloading DMG Files\n") self.u.info("Downloading {} for {}...\n".format(os.path.basename(url), name)) try: - result = self.d.stream_to_file(url, os.path.join(download_dir, os.path.basename(url))) + result = self.d.stream_to_file(url, os.path.join(download_dir, os.path.basename(url)), allow_resume=True) assert result is not None done.append({"name":os.path.basename(url), "status":True}) except: