diff --git a/__init__.py b/__init__.py index 1b81f99..8f138f8 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ from .py.lgutils import * from .py.trans import * - +from .py.batch_video import * WEB_DIRECTORY = "web" NODE_CLASS_MAPPINGS = { @@ -15,7 +15,9 @@ NODE_CLASS_MAPPINGS = { "MaskListRepeater": MaskListRepeater, "LG_FastPreview": LG_FastPreview, "LG_AccumulatePreview": LG_AccumulatePreview, - + "LG_CreateAndSaveVideo": LG_CreateAndSaveVideo, + "LG_ConcatVideoFiles": LG_ConcatVideoFiles, + "LG_SaveAudioGetPath": LG_SaveAudioGetPath, } NODE_DISPLAY_NAME_MAPPINGS = { "GroupExecutorSingle": "🎈GroupExecutorSingle", @@ -29,4 +31,7 @@ NODE_DISPLAY_NAME_MAPPINGS = { "MaskListRepeater": "🎈List-Mask-Repeater", "LG_FastPreview": "🎈LG_FastPreview", "LG_AccumulatePreview": "🎈LG_AccumulatePreview", + "LG_CreateAndSaveVideo": "🎈LG_CreateAndSaveVideo", + "LG_ConcatVideoFiles": "🎈LG_ConcatVideoFiles", + "LG_SaveAudioGetPath": "🎈LG_SaveAudioGetPath", } diff --git a/py/batch_video.py b/py/batch_video.py index 396bf4c..01133a6 100644 --- a/py/batch_video.py +++ b/py/batch_video.py @@ -15,7 +15,7 @@ from fractions import Fraction from comfy.cli_args import args CATEGORY_TYPE = "🎈LAOGOU/Group" -class CreateAndSaveVideo: +class LG_CreateAndSaveVideo: """ 从图片创建视频并保存到文件,返回文件路径 """ @@ -86,7 +86,7 @@ class CreateAndSaveVideo: return (file_path,) -class ConcatVideoFiles: +class LG_ConcatVideoFiles: """ 使用 FFmpeg 合并多个视频文件 支持字符串列表输入或多行文本输入 @@ -294,7 +294,7 @@ class ConcatVideoFiles: "result": (output_file,)} -class SaveAudioGetPath: +class LG_SaveAudioGetPath: """ 保存音频文件并返回文件路径 支持 FLAC、MP3、OPUS 格式 @@ -460,14 +460,3 @@ class SaveAudioGetPath: return {"ui": {"audio": []}, "result": ("",)} -NODE_CLASS_MAPPINGS = { - "LG_CreateAndSaveVideo": CreateAndSaveVideo, - "LG_ConcatVideoFiles": ConcatVideoFiles, - "LG_SaveAudioGetPath": SaveAudioGetPath, -} - -NODE_DISPLAY_NAME_MAPPINGS = { - "LG_CreateAndSaveVideo": "Create And Save Video With Path", - "LG_ConcatVideoFiles": "Concat Video Files With Path", - "LG_SaveAudioGetPath": "Save Audio With Path", -} diff --git a/pyproject.toml b/pyproject.toml index 42ca288..aab2d7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_lg_groupexecutor" description = "A ComfyUI extension for controlling and managing node group execution flow. Features include single/multiple group execution, delay control, signal chaining, and execution list repetition processing." -version = "1.3.3" +version = "1.3.4" dependencies = [""] [project.urls]