Add MJ image node, GIF save, and Kling/image generator updates
Ship o1key MJ图片生成 with content/style refs and prompt flags, save-GIF with preview, Kling 4.0 helpers, plus GPT/unified image node polish and docs.
This commit is contained in:
@@ -217,6 +217,17 @@ def extract_video_url(payload: Dict[str, Any]) -> str | None:
|
||||
if value:
|
||||
return str(value)
|
||||
|
||||
# Kling 4.0 compatible task envelopes may place the result under
|
||||
# output.media[].url instead of result_url/task_result.videos[].url.
|
||||
output = _as_dict(source.get("output"))
|
||||
media = output.get("media")
|
||||
if isinstance(media, list):
|
||||
for item in media:
|
||||
item = _as_dict(item)
|
||||
value = item.get("url") or item.get("video_url")
|
||||
if value:
|
||||
return str(value)
|
||||
|
||||
# 腾讯 Kling(v3-t)渠道:完成时视频地址在 metadata.url
|
||||
metadata = _as_dict(source.get("metadata"))
|
||||
value = metadata.get("url") or metadata.get("video_url")
|
||||
|
||||
Reference in New Issue
Block a user