From ff94298b745fe1bc33c374a3c26a2899c3a8a114 Mon Sep 17 00:00:00 2001 From: bilt Date: Tue, 8 Jul 2025 07:03:18 +0800 Subject: [PATCH] Test URL --- comfy_extras/nodes_video.py | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/comfy_extras/nodes_video.py b/comfy_extras/nodes_video.py index 86b0427b6..224180560 100644 --- a/comfy_extras/nodes_video.py +++ b/comfy_extras/nodes_video.py @@ -386,6 +386,7 @@ class TestURL(ComfyNodeABC): @classmethod def INPUT_TYPES(cls): return { + "required": {} } RETURN_TYPES = () @@ -398,6 +399,60 @@ class TestURL(ComfyNodeABC): def show_url(self): return ("http://aaatesat.com",) +class TestURL2(ComfyNodeABC): + @classmethod + def INPUT_TYPES(cls): + return { + "required": {} + } + + RETURN_TYPES = () + RETURN_NAMES = () + FUNCTION = "show_url" + OUTPUT_NODE = True + CATEGORY = "image/video" + DESCRIPTION = "Show a URL as plain text in the UI." + + def show_url(self): + return {"ui": {"link": ["http://aauaoaaadaa.ad"]}} + +class TestURL3: + @classmethod + def INPUT_TYPES(cls): + return { + "required": {} + } + + RETURN_TYPES = () + RETURN_NAMES = () + FUNCTION = "show_url" + OUTPUT_NODE = True + CATEGORY = "image/video" + DESCRIPTION = "Show a URL as plain text in the UI." + + def show_url(self): + return {"ui": {"link": ["http://aauaoaaadaa.ad"]}} + + +class TestURL4: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "url_string": ("STRING", {"multiline": False, "default": "xyz"}), + }, + } + + RETURN_TYPES = () + RETURN_NAMES = () + FUNCTION = "show_url" + OUTPUT_NODE = True + CATEGORY = "image/video" + DESCRIPTION = "Show a URL as plain text in the UI." + + def show_url(self, url_strin): + return {"ui": {"link": ["http://aauaoaaadaa.ad"]}} + class DisplayLinkNode: def __init__(self): @@ -433,6 +488,9 @@ NODE_CLASS_MAPPINGS = { "LoadVideoEncrypted": LoadVideoEncrypted, "ShowURL": ShowURL, "TestURL": TestURL, + "TestURL2": TestURL2, + "TestURL3": TestURL3, + "TestURL4": TestURL4, "DisplayLink": DisplayLinkNode } @@ -444,5 +502,8 @@ NODE_DISPLAY_NAME_MAPPINGS = { "LoadVideoEncrypted": "Load Video (Encrypted)", "ShowURL": "Show URL", "TestURL": "Test URL", + "TestURL2": "Test URL 2", + "TestURL3": "Test URL 3", + "TestURL4": "Test URL 4", "DisplayLink": "Display Link (Custom)" }