Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
refactor: remove debug crawlers and enable simpcity
NTFSvolume5a95e6c05291
diff --git a/cyberdrop_dl/crawlers/crawler.py b/cyberdrop_dl/crawlers/crawler.pyindex 0d5073c90..41fe954a7 100644--- a/cyberdrop_dl/crawlers/crawler.py+++ b/cyberdrop_dl/crawlers/crawler.py@@ -14,7 +14,7 @@ from typing import TYPE_CHECKING, Any, ClassVar, Concatenate, Final, Literal, Sefrom aiohttp import hdrs-from cyberdrop_dl import aio, env+from cyberdrop_dl import aiofrom cyberdrop_dl.cache import TTLCacheAdapterfrom cyberdrop_dl.clients.downloads import IGNORE_CONTENT_TYPEfrom cyberdrop_dl.clients.http import HTTPClient, HTTPConfig, HTTPContext, HTTPMixin@@ -317,7 +317,7 @@ class Crawler(HTTPMixin, HLSMixin, ABC):cls.SUPPORTED_PATHS = paths # pyright: ignore[reportConstantRedefinition, reportAttributeAccessIssue]cls.IS_ABC: bool = is_abc- add_to_registry = bool(not is_debug or (is_debug and env.ENABLE_DEBUG_CRAWLERS))+ add_to_registry = not is_debugif cls.IS_GENERIC:cls.INFO: CrawlerInfo = CrawlerInfo.abstract("GENERIC", cls.NAME, paths)diff --git a/cyberdrop_dl/crawlers/xenforo/simpcity.py b/cyberdrop_dl/crawlers/xenforo/simpcity.pyindex 7fe51ac88..9ad0259ee 100644--- a/cyberdrop_dl/crawlers/xenforo/simpcity.py+++ b/cyberdrop_dl/crawlers/xenforo/simpcity.py@@ -12,7 +12,7 @@ etag.register(etag.ETag("65b7753c-528a", "SC Scrape Image"))@HTTPConfig(rate_limit=(1, 20))-class SimpCityCrawler(XenforoCrawler, is_debug=True):+class SimpCityCrawler(XenforoCrawler):PRIMARY_URL: ClassVar[AbsoluteHttpURL] = AbsoluteHttpURL("https://simpcity.cr")DOMAIN: ClassVar[str] = "simpcity"FOLDER_DOMAIN: ClassVar[str] = "SimpCity"diff --git a/cyberdrop_dl/env.py b/cyberdrop_dl/env.pyindex 5258165dc..7080cc604 100644--- a/cyberdrop_dl/env.py+++ b/cyberdrop_dl/env.py@@ -38,9 +38,6 @@ DEBUG_MODE = _cast_bool(or os.getenv("TERM_PROGRAM") in {"vscode", "zed"}or "pytest" in sys.modules)-ENABLE_DEBUG_CRAWLERS = (- _env("ENABLE_DEBUG_CRAWLERS", censor=True) == "d396ab8c85fcb1fecd22c8d9b58acf944a44e6d35014e9dd39e42c9a64091eda"-)APPDATA_FOLDER = _env("APPDATA_FOLDER")WRITE_JSON_UI = int(_env("WRITE_JSON_UI") or 0) or None