Skip to content

Bulk asynchronous downloader for multiple file hosts

Try to fix yaml load issue.

Jules-WinnfieldX3d33f7074da1
diff --git a/README.md b/README.md
index 2907b0be7..71cdb0957 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 4.0.2
+The latest version of the program is 4.0.3
Brand new and improved! Cyberdrop-DL now has an updated paint job, fantastic new look. On top of this it also downloads from different domains simultaneously.
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 064c0b35b..c7a18d13e 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.0.2"
+__version__ = "4.0.3"
diff --git a/cyberdrop_dl/base_functions/config_manager.py b/cyberdrop_dl/base_functions/config_manager.py
index 1fa5eaf02..6ff2a3787 100644
--- a/cyberdrop_dl/base_functions/config_manager.py
+++ b/cyberdrop_dl/base_functions/config_manager.py
@@ -41,7 +41,10 @@ def create_config(config: Path, passed_args=None, remake=None):
config_data[0]["Configuration"]["Runtime"][arg] = passed_args[arg]
for arg in sorting_args:
if arg in passed_args.keys():
- config_data[0]["Configuration"]["Sorting"][arg] = passed_args[arg]
+ if arg == "sort_directory":
+ config_data[0]["Configuration"]["Sorting"][arg] = str(passed_args[arg])
+ else:
+ config_data[0]["Configuration"]["Sorting"][arg] = passed_args[arg]
with open(config, 'w') as yamlfile:
yaml.dump(config_data, yamlfile)