add endpoint

This commit is contained in:
dlliang14
2026-03-12 19:22:37 +08:00
parent eabfe2e3db
commit c5ff9398e3
+23
View File
@@ -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",
}