Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Revert UI size changes for partial downloads. It led to >100% completion in the display.
Jules-WinnfieldXe3c440d6c75f
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 56f17e5fc..1d7386142 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "4.2.26"+__version__ = "4.2.27"diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.pyindex 0d8c7098f..45b18ee4a 100644--- a/cyberdrop_dl/client/client.py+++ b/cyberdrop_dl/client/client.py@@ -184,7 +184,7 @@ class DownloadSession:file_task: TaskID) -> None:async def save_content(content: aiohttp.StreamReader, size: int) -> None:- Progress_Master.FileProgress.update_file_length(file_task, size)+ Progress_Master.FileProgress.update_file_length(file_task, size + resume_point)Progress_Master.FileProgress.advance_file(file_task, resume_point)await self._append_content(file, content, lambda chunk_len: Progress_Master.FileProgress.advance_file(file_task, chunk_len))@@ -195,7 +195,7 @@ class DownloadSession:async def save_content(content: aiohttp.StreamReader, size: int) -> None:task_description = adjust_title(f"{media.url.host}: {media.filename}")- with tqdm(total=size, unit_scale=True, unit='B', leave=False,+ with tqdm(total=size + resume_point, unit_scale=True, unit='B', leave=False,initial=resume_point, desc=task_description) as progress:await self._append_content(file, content, lambda chunk_len: progress.update(chunk_len))