Skip to content

Bulk asynchronous downloader for multiple file hosts

switch to tasks for 3.11 compatibility

Jules-WinnfieldXe4a8aa7ab149
diff --git a/README.md b/README.md
index 71cdb0957..1dbc82760 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 4.0.3
+The latest version of the program is 4.0.5
Brand new and improved! Cyberdrop-DL now has an updated paint job, fantastic new look. On top of this it also downloads from different domains simultaneously.
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 4b56dfc53..e2a8e2c07 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.0.4"
+__version__ = "4.0.5"
diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py
index 165d6e0a2..ecc1a6cd4 100644
--- a/cyberdrop_dl/main.py
+++ b/cyberdrop_dl/main.py
@@ -152,7 +152,7 @@ async def scrape_links(scraper: ScrapeMapper, links: list, quiet=False) -> Casca
tasks = []
for link in links:
- tasks.append(scraper.map_url(link))
+ tasks.append(asyncio.create_task(scraper.map_url(link)))
await asyncio.wait(tasks)
Cascade = scraper.Cascade