Skip to content

Bulk asynchronous downloader for multiple file hosts

don't use url file when passing links in cli.

Jules-WinnfieldX2034994f833e
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 836010981..abb3d10f9 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.64"
+__version__ = "5.0.65"
diff --git a/cyberdrop_dl/scraper/scraper.py b/cyberdrop_dl/scraper/scraper.py
index 54aa7955c..99197c269 100644
--- a/cyberdrop_dl/scraper/scraper.py
+++ b/cyberdrop_dl/scraper/scraper.py
@@ -276,11 +276,13 @@ class ScrapeMapper:
input_file = Path(self.manager.args_manager.input_file)
links = []
- async with aiofiles.open(input_file, "r", encoding="utf8") as f:
- async for line in f:
- assert isinstance(line, str)
- links.extend(await self.regex_links(line))
- links.extend(self.manager.args_manager.other_links)
+ if not self.manager.args_manager.other_links:
+ async with aiofiles.open(input_file, "r", encoding="utf8") as f:
+ async for line in f:
+ assert isinstance(line, str)
+ links.extend(await self.regex_links(line))
+ else:
+ links.extend(self.manager.args_manager.other_links)
links = list(filter(None, links))
if not links:
diff --git a/pyproject.toml b/pyproject.toml
index 9867aaf33..3a1550410 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.64"
+version = "5.0.65"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"