Skip to content

Bulk asynchronous downloader for multiple file hosts

remove unicode from title before writing to unsupported

Jules-WinnfieldX60ad9b05ef46
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 81d539e35..622e54054 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.0.35"
+__version__ = "4.0.36"
diff --git a/cyberdrop_dl/scraper/Scraper.py b/cyberdrop_dl/scraper/Scraper.py
index b4dd0bcf7..1138bf0f7 100644
--- a/cyberdrop_dl/scraper/Scraper.py
+++ b/cyberdrop_dl/scraper/Scraper.py
@@ -352,5 +352,7 @@ class ScrapeMapper:
else:
await log(f"[yellow]Not Supported: {str(url_to_map)}[/yellow]", quiet=self.quiet)
if self.unsupported_output:
+ title = title.encode("ascii", "ignore")
+ title = title.decode().strip()
async with aiofiles.open(self.unsupported_file, mode='a') as f:
await f.write(f"{str(url_to_map)},{str(referer)},{title}\n")