From c5ff9398e3f0c4b2a705a2fd9802b67eec4aa8d6 Mon Sep 17 00:00:00 2001 From: dlliang14 <89458327+dlliang14@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:22:37 +0800 Subject: [PATCH] add endpoint --- nodes/media_nodes.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nodes/media_nodes.py b/nodes/media_nodes.py index 14bd5b1..a1c9e68 100644 --- a/nodes/media_nodes.py +++ b/nodes/media_nodes.py @@ -253,10 +253,33 @@ class FFmpegBatchConvertNode: return candidate +class DebugStringOutputNode: + """Workflow terminal output node for debugging string results.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "text": ("STRING", {"default": "", "multiline": True}), + } + } + + RETURN_TYPES = () + FUNCTION = "run" + OUTPUT_NODE = True + CATEGORY = "dlliang14/debug" + + def run(self, text: str): + print(f"[DebugStringOutputNode]\n{text}") + return () + + NODE_CLASS_MAPPINGS = { "FFmpegBatchConvertNode": FFmpegBatchConvertNode, + "DebugStringOutputNode": DebugStringOutputNode, } NODE_DISPLAY_NAME_MAPPINGS = { "FFmpegBatchConvertNode": "FFmpeg Batch Convert (Video -> Audio)", + "DebugStringOutputNode": "Debug String Output", }