Skip to content

Bulk asynchronous downloader for multiple file hosts

Change title safe to allow singular periods.

Jules-WinnfieldXf70a25ea604d
diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.py
index a17c85ffd..afff4d1ea 100644
--- a/cyberdrop_dl/utils/utilities.py
+++ b/cyberdrop_dl/utils/utilities.py
@@ -91,7 +91,8 @@ async def sanitize_folder(title: str) -> str:
title = title.replace("\n", "").strip()
title = title.replace("\t", "").strip()
title = re.sub(' +', ' ', title)
- title = re.sub(r'[\\*?:"<>|./]', "-", title)
+ title = re.sub(r'[\\*?:"<>|/]', "-", title)
+ title = re.sub(r'\.{2,}', ".", title)
title = title[:MAX_NAME_LENGTHS['FOLDER']].strip()
return title