Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
test: allow per case config overrides
NTFSvolume9c8b6f6b6957
diff --git a/cyberdrop_dl/crawlers/turbovid.py b/cyberdrop_dl/crawlers/turbovid.pyindex d06f694de..dadb602d4 100644--- a/cyberdrop_dl/crawlers/turbovid.py+++ b/cyberdrop_dl/crawlers/turbovid.py@@ -138,7 +138,5 @@ def _extract_album(html: str) -> Album:return Album(id=extr_text(html, 'const ALBUM_ENC_ID = "', '"'),name=css.select_text(BeautifulSoup(html, "html.parser", parse_only=SoupStrainer("h1")), "h1"),- files=tuple(- fid.strip('"') for fid in TextExtractor(extr_text(html, "const FILES = [", "],")).repeat("id:", ", name")- ),+ files=tuple(TextExtractor(extr_text(html, "const FILES = [", "],")).repeat('{ id:"', '"')),)diff --git a/tests/crawlers/test_cases/__init__.py b/tests/crawlers/test_cases/__init__.pyindex 3cb0f22d4..7f1d647bd 100644--- a/tests/crawlers/test_cases/__init__.py+++ b/tests/crawlers/test_cases/__init__.py@@ -25,6 +25,7 @@ class CrawlerTestCase:domain: strurl: strresults: list[Result]+ args: tuple[str, ...] = ()description: str | None = Nonefail: bool | str | int = Falsexfail: str | None = Nonediff --git a/tests/crawlers/test_crawlers.py b/tests/crawlers/test_crawlers.pyindex 34c5562ec..b026a471b 100644--- a/tests/crawlers/test_crawlers.py+++ b/tests/crawlers/test_crawlers.py@@ -53,6 +53,9 @@ async def test_crawler(running_manager: Manager, test_case: test_cases.CrawlerTerunning_manager.config.network.flaresolverr = AbsoluteHttpURL("http://localhost:8191")+ if test_case.args:+ running_manager._config = running_manager.config | running_manager.config.parse_args(test_case.args)+with _crawler_mock() as func:async with ScrapeMapper(running_manager)() as scrape_mapper:await running_manager.http_client.load_cookie_files([REPO_ROOT / "cookies.txt"])