Skip to content

Bulk asynchronous downloader for multiple file hosts

docs: fix typos

NTFSvolumee7abf061cf8b
diff --git a/cyberdrop_dl/config/__init__.py b/cyberdrop_dl/config/__init__.py
index 161076a4f..58651fc16 100644
--- a/cyberdrop_dl/config/__init__.py
+++ b/cyberdrop_dl/config/__init__.py
@@ -72,7 +72,7 @@ class Config(ConfigModel, title="cyberdrop-dl config"):
filters: Filters = Field(default_factory=Filters)
hashing: Hashing = Field(default_factory=Hashing)
ignore_history: bool = False
- "Download files even if the alrady are maked as downloaded on the database"
+ "Download files even if the already are marked as downloaded on the database"
jdownloader: Jdownloader = Field(default_factory=Jdownloader)
logs: Logs = Field(default_factory=Logs)
@@ -94,10 +94,10 @@ class Config(ConfigModel, title="cyberdrop-dl config"):
min_free_space: Annotated[ByteSizeSerilized, AfterValidator(lambda x: max(x, MIN_REQUIRED_FREE_SPACE))] = (
to_bytesize("5GB")
)
- "Mininum free space require to start new downloads"
+ "Minimum free space require to start new downloads"
mtime: bool = True
- "Use original upload date as modification date for downloded file"
+ "Use original upload date as modification date for downloaded file"
network: Network = Field(default_factory=Network)
notifications: Notifications = Field(default_factory=Notifications)
diff --git a/cyberdrop_dl/config/settings.py b/cyberdrop_dl/config/settings.py
index 76c2fcf38..09c418d40 100644
--- a/cyberdrop_dl/config/settings.py
+++ b/cyberdrop_dl/config/settings.py
@@ -278,7 +278,7 @@ class Downloads(ConfigGroup):
"Number of seconds to wait before starting downloads"
slow_speed: ByteSizeSerilized = ByteSize(0)
- "Skip downloads if their speed is bellow this value for more than 10 seconds. Set to 0 to disable"
+ "Skip downloads if their speed is below this value for more than 10 seconds. Set to 0 to disable"
speed_limit: ByteSizeSerilized = ByteSize(0)
"Max speed rate (in bytes per second) to limit downloads (combined)"
diff --git a/cyberdrop_dl/utils/__init__.py b/cyberdrop_dl/utils/__init__.py
index 413f544ea..2f7f76e47 100644
--- a/cyberdrop_dl/utils/__init__.py
+++ b/cyberdrop_dl/utils/__init__.py
@@ -106,7 +106,7 @@ def unique[T](itr: Iterable[T], /) -> Generator[T]:
def fast_cache[T, R](fn: Callable[[T], R]) -> Callable[[T], R]:
- "Like functools.cache but for single argument funciton and without all the stats logic"
+ "Like functools.cache but for single argument function and without all the stats logic"
cache: dict[T, R] = {}
def compute(obj: T) -> R:
diff --git a/cyberdrop_dl/utils/next_js.py b/cyberdrop_dl/utils/next_js.py
index 111f0326f..4827b0671 100644
--- a/cyberdrop_dl/utils/next_js.py
+++ b/cyberdrop_dl/utils/next_js.py
@@ -128,8 +128,8 @@ def _parse_raw_chunks(flight_data: FlightData) -> Generator[_FlightChunk]:
marker = marker or None
data = line[m.end() :].strip()
if marker and marker.startswith("T"):
- lenght = int(marker[1:-1], 16)
- data, rest = data[:lenght], FlightData(data[lenght:])
+ length = int(marker[1:-1], 16)
+ data, rest = data[:length], FlightData(data[length:])
yield _FlightChunk(chunk_id, "T", data)
if rest:
yield from _parse_raw_chunks(rest)
diff --git a/docs/frequently-asked-questions.md b/docs/frequently-asked-questions.md
index aae6eb120..bc83d0f44 100644
--- a/docs/frequently-asked-questions.md
+++ b/docs/frequently-asked-questions.md
@@ -21,7 +21,7 @@ This is a bulk downloader for the supported sites. It supports resumable downloa
## How do I update?
If you are using one of the provided start files, it should do so automatically. Keep in mind that they will only update to the newest release of the same major version. ex: if you are using v9 start scripts, they will update to the latest v9 release.
-This is beacuse every new major relase has breaking changes and is not safe to automatically update to them.
+This is because every new major release has breaking changes and is not safe to automatically update to them.
Each time there is a new major release, you will need to download new start scripts. Be sure to read the changelog to know about the breaking changes. You may need to perform some manual action to update successfully
## Why do i get `DDoS-Guard` error downloading from `x` site?