From 585a2eef9fd173539a6eaa382fdfd42bc3489592 Mon Sep 17 00:00:00 2001 From: bilt Date: Mon, 7 Jul 2025 18:23:48 +0800 Subject: [PATCH] url --- comfy_extras/nodes_video.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comfy_extras/nodes_video.py b/comfy_extras/nodes_video.py index c4f091191..f09a57b99 100644 --- a/comfy_extras/nodes_video.py +++ b/comfy_extras/nodes_video.py @@ -173,10 +173,13 @@ class SaveVideo(ComfyNodeABC): # 不加密,直接重命名 os.rename(temp_file_path, final_file_path) + url = f"/view?filename={os.path.basename(final_file_path)}&subfolder={subfolder}&type=output" + results.append({ "filename": os.path.basename(final_file_path), "subfolder": subfolder, - "type": self.type + "type": self.type, + "url": url }) counter += 1