Skip to content

Bulk asynchronous downloader for multiple file hosts

refactor: add GoFile salt envvar

NTFSvolumefba96c443b55
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 14df5c8e5..60b24a66e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Detect and report BasedFlare anti-bot protection
+### Fixed
+
+- Update website salt (Gofile)
+
## [9.15.1] - 2026-06-11
### Fixed
diff --git a/cyberdrop_dl/crawlers/gofile.py b/cyberdrop_dl/crawlers/gofile.py
index 3496ed4a7..e901bc2d2 100644
--- a/cyberdrop_dl/crawlers/gofile.py
+++ b/cyberdrop_dl/crawlers/gofile.py
@@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, Any, ClassVar, Literal, NotRequired, TypedDict
from typing_extensions import ReadOnly
+from cyberdrop_dl import env
from cyberdrop_dl.crawlers.crawler import Crawler, RateLimit, SupportedPaths
from cyberdrop_dl.exceptions import PasswordProtectedError, ScrapeError
from cyberdrop_dl.url_objects import FILE_HOST_ALBUM, AbsoluteHttpURL, ScrapeItem
@@ -71,7 +72,7 @@ class GoFileCrawler(Crawler):
FOLDER_DOMAIN: ClassVar[str] = "GoFile"
_RATE_LIMIT: ClassVar[RateLimit] = 4, 10
- _SALT: ClassVar[str] = "9844d94d963d30"
+ _SALT: ClassVar[str] = env.GOFILE_SALT or "9844d94d963d30"
_BROWSER_LANG: ClassVar[str] = "en-US"
def __post_init__(self) -> None:
diff --git a/cyberdrop_dl/env.py b/cyberdrop_dl/env.py
index d034022d6..84eeb585b 100644
--- a/cyberdrop_dl/env.py
+++ b/cyberdrop_dl/env.py
@@ -41,6 +41,7 @@ EDITOR = os.getenv("EDITOR")
BANDCAMP_FORMATS = _env("BANDCAMP_FORMATS")
ENABLE_TWITTER = bool(_env("ENABLE_TWITTER"))
+GOFILE_SALT = _env("GOFILE_SALT")
ONEPACE_PREFER_DUB = bool(_env("ONEPACE_PREFER_DUB"))
CLYPIT_PREFER_MP3 = bool(_env("CLYPIT_PREFER_MP3"))