Skip to content

Bulk asynchronous downloader for multiple file hosts

Add an actual message when there is no file extension specified by server.

Jules-WinnfieldXbe5655cf8dd9
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index f59616a44..cf114b17a 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.3.29"
+__version__ = "3.3.30"
diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.py
index ccfcaeb9c..cb259400e 100644
--- a/cyberdrop_dl/client/client.py
+++ b/cyberdrop_dl/client/client.py
@@ -81,7 +81,7 @@ class Session:
try:
await self.client_session.close()
except Exception as e:
- logging.debug(f"Failed to close sqlite database connection: {str(e)}")
+ logging.debug(f"Failed to close session.")
class DownloadSession:
diff --git a/cyberdrop_dl/client/downloaders.py b/cyberdrop_dl/client/downloaders.py
index 526941c74..bf2985691 100644
--- a/cyberdrop_dl/client/downloaders.py
+++ b/cyberdrop_dl/client/downloaders.py
@@ -113,6 +113,7 @@ class Downloader:
filename = await sanitize(filename)
ext = '.' + filename.split('.')[-1].lower()
if not (ext in FILE_FORMATS['Images'] or ext in FILE_FORMATS['Videos'] or ext in FILE_FORMATS['Audio'] or ext in FILE_FORMATS['Other']):
+ await log("\nNo file extension on content in link: " + str(url))
return
except:
try:
@@ -262,7 +263,7 @@ class Downloader:
"""Download the data from all given links and store them into corresponding files."""
coros = [self.download_and_store(url_object, session, show_progress)
for url_object in album_obj.link_pairs]
- for func in tqdm(asyncio.as_completed(coros), total=len(coros), desc=self.title, unit='FILES'):
+ for func in tqdm(asyncio.as_completed(coros), total=len(coros), desc=self.title, unit='FILE'):
await func
async def download_content(self, show_progress: bool = True, conn_timeout: int = 15) -> None: