Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Implement better free space check
Jules-WinnfieldX5917a338be03
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 0d68001f1..3db7a29d2 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "5.1.24"+__version__ = "5.1.25"diff --git a/cyberdrop_dl/clients/download_client.py b/cyberdrop_dl/clients/download_client.pyindex 492df6824..a543c8fd5 100644--- a/cyberdrop_dl/clients/download_client.py+++ b/cyberdrop_dl/clients/download_client.py@@ -97,6 +97,9 @@ class DownloadClient:async def _append_content(self, file: Path, content: aiohttp.StreamReader,update_progress: partial) -> None:"""Appends content to a file"""+ if not await self.client_manager.manager.download_manager.check_free_space():+ raise DownloadFailure(status="No Free Space", message="Not enough free space")+file.parent.mkdir(parents=True, exist_ok=True)if not file.is_file():file.touch()diff --git a/pyproject.toml b/pyproject.tomlindex 6365f07a6..07aceaacb 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "cyberdrop-dl"-version = "5.1.24"+version = "5.1.25"description = "Bulk downloader for multiple file hosts"authors = ["Jules Winnfield <[email protected]>"]readme = "README.md"