Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: always use utf-8

NTFSvolume2f18d9f4f454
diff --git a/cyberdrop_dl/clients/scraper_client.py b/cyberdrop_dl/clients/scraper_client.py
index 1b99b90db..981ec5383 100644
--- a/cyberdrop_dl/clients/scraper_client.py
+++ b/cyberdrop_dl/clients/scraper_client.py
@@ -373,6 +373,6 @@ class ScraperClient:
info = info | {"error": str(exc), "exception": repr(exc)}
text = f"<!-- cyberdrop-dl scraping result\n{json.dumps(info, indent=4, ensure_ascii=False)}\n-->\n{html_text}"
try:
- await asyncio.to_thread(file_path.write_text, text)
+ await asyncio.to_thread(file_path.write_text, text, "utf8")
except OSError:
pass