From b3b9b5a5ff597219e3bc50a47e308e2411d9cd3f Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 5 May 2024 16:45:04 +0900 Subject: [PATCH] fix: channel abbreviation --- cm-cli.py | 9 ++++----- glob/manager_core.py | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cm-cli.py b/cm-cli.py index dae1110..2e78f0e 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -123,6 +123,8 @@ def install_deps(): else: # disabled core.gitclone_set_active([k], False) + print("Dependency installation and activation complete.") + def restore_snapshot(snapshot_name): global processed_install @@ -532,17 +534,14 @@ def deps_in_workflow(): print(f"missing arguments: --workflow ") exit(-1) elif not os.path.exists(input_path): - print(f"File not founed: {input_path}") + print(f"File not found: {input_path}") exit(-1) - if output_path is None: print(f"missing arguments: --output ") exit(-1) - print(f"{input_path}, {output_path}") - - used_exts, unknown_nodes = asyncio.run(core.extract_nodes_from_workflow(input_path)) + used_exts, unknown_nodes = asyncio.run(core.extract_nodes_from_workflow(input_path, mode=mode, channel_url=channel)) custom_nodes = {} for x in used_exts: diff --git a/glob/manager_core.py b/glob/manager_core.py index 517417f..db20bea 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -598,6 +598,9 @@ def is_file_created_within_one_day(file_path): async def get_data_by_mode(mode, filename, channel_url=None): + if channel_url in get_channel_dict(): + channel_url = get_channel_dict()[channel_url] + try: if mode == "local": uri = os.path.join(comfyui_manager_path, filename)