From 2fb54566304d5ce0151f4f1f807c26a74f8a4ed8 Mon Sep 17 00:00:00 2001 From: datawhores Date: Sat, 23 Mar 2024 13:42:12 -0500 Subject: [PATCH] item total none --- ofscraper/download/alt_download.py | 1 + ofscraper/download/alt_downloadbatch.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ofscraper/download/alt_download.py b/ofscraper/download/alt_download.py index 9e6a2893a..dd145ea30 100644 --- a/ofscraper/download/alt_download.py +++ b/ofscraper/download/alt_download.py @@ -175,6 +175,7 @@ async def alt_download_downloader(item, c, ele, progress): placeholderObj = placeholder.tempFilePlaceholder(ele, f"{item['name']}.part") await placeholderObj.init() item["path"] = placeholderObj.tempfilepath + item["total"] = None async for _ in AsyncRetrying( stop=stop_after_attempt(constants.getattr("DOWNLOAD_RETRIES")), wait=wait_random( diff --git a/ofscraper/download/alt_downloadbatch.py b/ofscraper/download/alt_downloadbatch.py index bcf42cd07..139ba0744 100644 --- a/ofscraper/download/alt_downloadbatch.py +++ b/ofscraper/download/alt_downloadbatch.py @@ -171,6 +171,7 @@ async def alt_download_downloader( placeholderObj = placeholder.tempFilePlaceholder(ele, f"{item['name']}.part") await placeholderObj.init() item["path"] = placeholderObj.tempfilepath + item["total"] = None async for _ in AsyncRetrying( stop=stop_after_attempt(constants.getattr("DOWNLOAD_RETRIES")),