Default allow_resume to False in downloader.py

This commit is contained in:
unknown 2025-01-21 08:24:13 -06:00
parent db698f132e
commit fb142656a8
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@ class Downloader:
process.join() process.join()
return chunk_so_far 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) response = self.open_url(url, headers)
if response is None: return None if response is None: return None
bytes_so_far = 0 bytes_so_far = 0

View file

@ -369,7 +369,7 @@ class gibMacOS:
self.u.info("NOTE: Only Downloading DMG Files\n") self.u.info("NOTE: Only Downloading DMG Files\n")
self.u.info("Downloading {} for {}...\n".format(os.path.basename(url), name)) self.u.info("Downloading {} for {}...\n".format(os.path.basename(url), name))
try: 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 assert result is not None
done.append({"name":os.path.basename(url), "status":True}) done.append({"name":os.path.basename(url), "status":True})
except: except: