Skip to content

Bulk asynchronous downloader for multiple file hosts

fix unsupported_urls writing

Jules-WinnfieldX8ef5b2459e88
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index bf2b93837..d0fe6e447 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.2.39"
+__version__ = "4.2.41"
diff --git a/cyberdrop_dl/base_functions/base_functions.py b/cyberdrop_dl/base_functions/base_functions.py
index 067030709..ddbe69534 100644
--- a/cyberdrop_dl/base_functions/base_functions.py
+++ b/cyberdrop_dl/base_functions/base_functions.py
@@ -163,13 +163,13 @@ class ErrorFileWriter:
async with aiofiles.open(self.errored_downloads, 'a') as f:
await f.write("URL,REFERER,REASON\n")
- async def write_unsupported(self, text: str) -> None:
+ async def write_unsupported(self, url: URL, referer: URL, title: str) -> None:
"""Writes to the error file"""
if not self.output_unsupported:
return
async with aiofiles.open(self.unsupported, 'a') as f:
- await f.write("URL,REFERER,REASON\n")
+ await f.write(f"{url},{referer},{title}\n")
async def write_unsupported_header(self):
"""Writes to the error file"""
@@ -177,7 +177,7 @@ class ErrorFileWriter:
return
async with aiofiles.open(self.unsupported, 'a') as f:
- await f.write(f"URL,Exception\n")
+ await f.write(f"URL,REFERER,TITLE\n")
async def write_last_post(self, url: URL) -> None:
"""Writes to the error file"""