From 01d8d843460cd8088fe466c2bde3d3f2ec04d65a Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Tue, 9 Jul 2024 20:30:22 +0900 Subject: [PATCH] fix: missing 3rd input of download_url in copy_install https://github.com/ltdrdata/ComfyUI-Manager/issues/848 --- glob/manager_core.py | 2 +- glob/manager_server.py | 5 +++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index a92f9921..aa5b0b6a 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 46] +version = [2, 46, 1] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') diff --git a/glob/manager_server.py b/glob/manager_server.py index edbe287c..f157fca7 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -710,13 +710,14 @@ def copy_install(files, js_path_name=None): if url.endswith("/"): url = url[:-1] try: + filename = os.path.basename(url) if url.endswith(".py"): - download_url(url, core.custom_nodes_path) + download_url(url, core.custom_nodes_path, filename) else: path = os.path.join(core.js_path, js_path_name) if js_path_name is not None else core.js_path if not os.path.exists(path): os.makedirs(path) - download_url(url, path) + download_url(url, path, filename) except Exception as e: print(f"Install(copy) error: {url} / {e}", file=sys.stderr) diff --git a/pyproject.toml b/pyproject.toml index 4fb76ecf..96695703 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 = "2.46" +version = "2.46.1" license = "LICENSE" dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]