Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
refactor: set 512MB as the minimun required free space (#399)
NTFSvolumea642a0e9cc05
diff --git a/cyberdrop_dl/config_definitions/global_settings.py b/cyberdrop_dl/config_definitions/global_settings.pyindex 065ab5196..1ab8a71f7 100644--- a/cyberdrop_dl/config_definitions/global_settings.py+++ b/cyberdrop_dl/config_definitions/global_settings.py@@ -9,6 +9,8 @@ from .custom_types import AliasModel, HttpURL, NonEmptyStrDATE_PATTERN = re.compile(r"(\d+)\s*(second|seconds|minute|minutes|hour|hours|day|days|week|weeks|month|months|year|years)", re.IGNORECASE)+MIN_REQUIRED_FREE_SPACE = ByteSize._validate("512MB", "")+DEFAULT_REQUIRED_FREE_SPACE = ByteSize._validate("5GB", "")def convert_to_str(value: URL | str) -> str | None:@@ -26,7 +28,7 @@ class General(BaseModel):flaresolverr: HttpURL | None = Nonemax_file_name_length: PositiveInt = 95max_folder_name_length: PositiveInt = 60- required_free_space: ByteSize = ByteSize._validate("5GB", "")+ required_free_space: ByteSize = Field(DEFAULT_REQUIRED_FREE_SPACE, gt=MIN_REQUIRED_FREE_SPACE)@field_serializer("required_free_space")def human_readable(self, value: ByteSize | int) -> str:diff --git a/docs/reference/configuration-options/global-settings/general.md b/docs/reference/configuration-options/global-settings/general.mdindex 298e66f1e..a403941a3 100644--- a/docs/reference/configuration-options/global-settings/general.md+++ b/docs/reference/configuration-options/global-settings/general.md@@ -68,8 +68,8 @@ This is the maximum number of characters allowable in a folder name.## `required_free_space`-| Type | Default |-|----------------|----------|-| `ByteSize` | `5GB`|+| Type | Default | Restrictions |+|----------------|----------| ----------|+| `ByteSize` | `5GB`| `>=512MB` |This is the minimum amount of free space require to start new downloads.