mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-22 01:52:31 -05:00
Default allow_resume to False in downloader.py
This commit is contained in:
parent
db698f132e
commit
fb142656a8
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue