Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix config file use, was being recreated every time due to typo.
Jules-WinnfieldXfc62f8c76ebc
diff --git a/README.md b/README.mdindex 7a83a9a2e..6d5527fe1 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.4.3+The latest version of the program is 3.4.4<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__.pyindex 567bfde23..922fee773 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.4.3"+__version__ = "3.4.4"diff --git a/cyberdrop_dl/base_functions/base_functions.py b/cyberdrop_dl/base_functions/base_functions.pyindex 1994a1d17..a4a1e9585 100644--- a/cyberdrop_dl/base_functions/base_functions.py+++ b/cyberdrop_dl/base_functions/base_functions.py@@ -104,8 +104,8 @@ async def check_direct(url: URL):return any(re.search(domain, url.host) for domain in mapping_direct)-async def create_config(config: Path, passed_args=None):- if config.is_file() and not passed_args:+async def create_config(config: Path, passed_args=None, remake=None):+ if config.is_file() and not remake:await validate_config(config)return@@ -137,11 +137,11 @@ async def validate_config(config: Path):try:if not set(authentication_args).issubset(set(data['Authentication'].keys())):recreate = 1- if not set(authentication_args).issubset(set(data['Files'].keys())):+ if not set(files_args).issubset(set(data['Files'].keys())):recreate = 1- if not set(authentication_args).issubset(set(data['JDownloader'].keys())):+ if not set(jdownloader_args).issubset(set(data['JDownloader'].keys())):recreate = 1- if not set(authentication_args).issubset(set(data['Runtime'].keys())):+ if not set(runtime_args).issubset(set(data['Runtime'].keys())):recreate = 1if recreate:@@ -152,7 +152,7 @@ async def validate_config(config: Path):args_list = [data['Authentication'], data['Files'], data['JDownloader'], data['Runtime']]for dic in args_list:args.update(dic)- await create_config(config, args)+ await create_config(config, args, True)except KeyError:config.unlink()diff --git a/cyberdrop_dl/base_functions/config_schema.py b/cyberdrop_dl/base_functions/config_schema.pyindex a3fd5b7a9..f0ad099d4 100644--- a/cyberdrop_dl/base_functions/config_schema.py+++ b/cyberdrop_dl/base_functions/config_schema.py@@ -48,6 +48,6 @@ authentication_args = ["simpcity_username", "simpcity_password","socialmediagirls_username", "socialmediagirls_password","xbunker_username", "xbunker_password"]jdownloader_args = ["jdownloader_enable", "jdownloader_username", "jdownloader_password", "jdownloader_device"]-runtime_args = ["threads", "attempts", "disabled_attempt_limit", "connection_timeout", "ratelimit", "throttle",+runtime_args = ["threads", "attempts", "disable_attempt_limit", "connection_timeout", "ratelimit", "throttle","include_id", "exclude_videos", "exclude_images", "exclude_audio", "exclude_other", "ignore_history","output_last_forum_post", "separate_posts", "skip_hosts", "proxy"]