Skip to content

Commit

Permalink
item total none
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Mar 23, 2024
1 parent 487b09c commit 2fb5456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ofscraper/download/alt_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions ofscraper/download/alt_downloadbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 2fb5456

Please sign in to comment.