Skip to content

Bulk asynchronous downloader for multiple file hosts

Change when folders are created.

Jules-WinnfieldX5bc78fc6076e
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 8f4a35170..dc9511ccb 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "2.16.0"
+__version__ = "2.16.1"
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index 7657c41f9..a53db0c65 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -159,6 +159,8 @@ class Downloader:
logger.debug("%s Already Downloaded" % filename)
return
+ (self.folder / self.title).mkdir(parents=True, exist_ok=True)
+
await sql_insert_file(self.connection, self.cursor, filename, total, 0)
with tqdm(
@@ -240,7 +242,6 @@ class Downloader:
async def download_content(self, show_progress: bool = True) -> None:
"""Download the content of all links and save them as files."""
- (self.folder / self.title).mkdir(parents=True, exist_ok=True)
async with aiohttp.ClientSession(cookie_jar=self.cookie_jar) as session:
await self.download_all(self.album_obj, session, show_progress=show_progress)
self.connection.commit()