Skip to content

Bulk asynchronous downloader for multiple file hosts

Max folder name length of 60

Jules-WinnfieldXd80f2a2a07bc
diff --git a/README.md b/README.md
index f3e5806c2..34142e5e5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 3.6.45
+The latest version of the program is 3.6.46
<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index a81c7ea45..57393598d 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.6.45"
+__version__ = "3.6.46"
diff --git a/cyberdrop_dl/base_functions/base_functions.py b/cyberdrop_dl/base_functions/base_functions.py
index 726296222..bdad96d19 100644
--- a/cyberdrop_dl/base_functions/base_functions.py
+++ b/cyberdrop_dl/base_functions/base_functions.py
@@ -70,6 +70,7 @@ async def clear() -> None:
async def make_title_safe(title: str):
title = re.sub(r'[\\*?:"<>|./]', "-", title)
+ title = title[:60].rstrip()
return title
diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py
index 72f675022..c7750b79c 100644
--- a/cyberdrop_dl/main.py
+++ b/cyberdrop_dl/main.py
@@ -115,6 +115,10 @@ async def download_all(auth_args: Dict, file_args: Dict, jdownloader_args: Dict,
excludes = {'videos': runtime_args['exclude_videos'], 'images': runtime_args['exclude_images'],
'audio': runtime_args['exclude_audio'], 'other': runtime_args['exclude_other']}
+ if not await check_free_space(runtime_args['required_free_space'], file_args['output_folder']):
+ await log("Not enough free space to run the program.", Fore.RED)
+ return
+
content_object = await scrape(urls=links, client=client, file_args=file_args, jdownloader_args=jdownloader_args,
runtime_args=runtime_args, jdownloader_auth=jdownloader_auth, simpcity_auth=simpcity_auth,
socialmediagirls_auth=socialmediagirls_auth, xbunker_auth=xbunker_auth,
@@ -127,10 +131,6 @@ async def download_all(auth_args: Dict, file_args: Dict, jdownloader_args: Dict,
exit(0)
await clear()
- if not await check_free_space(runtime_args['required_free_space'], file_args['output_folder']):
- await log("Not enough free space to run the program.", Fore.RED)
- return
-
backup_scraper = ScrapeMapper(client=client, file_args=file_args, jdownloader_args=jdownloader_args,
runtime_args=runtime_args, jdownloader_auth=jdownloader_auth,
simpcity_auth=simpcity_auth, socialmediagirls_auth=socialmediagirls_auth,