From 524ff9a4a67ad4e1b252a7719d1d8223725b69e9 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 2 Feb 2025 23:23:36 +0900 Subject: [PATCH] modified: change `default_cache_is_channel_url` config option to `default_cache_as_channel_url` --- README.md | 2 +- glob/manager_core.py | 6 +++--- glob/manager_server.py | 2 +- pyproject.toml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1997a267..31d77d2a 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ The following settings are applied based on the section marked as `is_default`. [default] git_exe = use_uv = - default_cache_is_channel_url = + default_cache_as_channel_url = bypass_ssl = file_logging = windows_selector_event_loop_policy = diff --git a/glob/manager_core.py b/glob/manager_core.py index 5140f6a3..51e0d76a 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -42,7 +42,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 17, 4] +version_code = [3, 17, 5] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') @@ -1593,7 +1593,7 @@ def read_config(): 'git_exe': default_conf['git_exe'] if 'git_exe' in default_conf else '', 'use_uv': default_conf['use_uv'].lower() == 'true' if 'use_uv' in default_conf else False, 'channel_url': default_conf['channel_url'] if 'channel_url' in default_conf else DEFAULT_CHANNEL, - 'default_cache_is_channel_url': default_conf['default_cache_is_channel_url'].lower() == 'true' if 'default_cache_is_channel_url' in default_conf else False, + 'default_cache_as_channel_url': default_conf['default_cache_as_channel_url'].lower() == 'true' if 'default_cache_as_channel_url' in default_conf else False, 'share_option': default_conf['share_option'] if 'share_option' in default_conf else 'all', 'bypass_ssl': default_conf['bypass_ssl'].lower() == 'true' if 'bypass_ssl' in default_conf else False, 'file_logging': default_conf['file_logging'].lower() == 'true' if 'file_logging' in default_conf else True, @@ -1614,7 +1614,7 @@ def read_config(): 'git_exe': '', 'use_uv': False, 'channel_url': DEFAULT_CHANNEL, - 'default_cache_is_channel_url': False, + 'default_cache_as_channel_url': False, 'share_option': 'all', 'bypass_ssl': False, 'file_logging': True, diff --git a/glob/manager_server.py b/glob/manager_server.py index e78a35a6..36d219b2 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -1578,7 +1578,7 @@ cm_global.register_api('cm.try-install-custom-node', confirm_try_install) async def default_cache_update(): channel_url = core.get_config()['channel_url'] async def get_cache(filename): - if core.get_config()['default_cache_is_channel_url']: + if core.get_config()['default_cache_as_channel_url']: uri = f"{channel_url}/{filename}" else: uri = f"{core.DEFAULT_CHANNEL}/{filename}" diff --git a/pyproject.toml b/pyproject.toml index fccadd02..b7e9cce3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.17.4" +version = "3.17.5" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]