use new API client in Luma and Minimax nodes (#10528)

This commit is contained in:
Alexander Piskun
2025-10-29 20:14:56 +02:00
committed by GitHub
parent e525673f72
commit 6c14f3afac
7 changed files with 283 additions and 516 deletions

View File

@@ -232,11 +232,12 @@ async def download_url_to_video_output(
video_url: str,
*,
timeout: float = None,
max_retries: int = 5,
cls: type[COMFY_IO.ComfyNode] = None,
) -> VideoFromFile:
"""Downloads a video from a URL and returns a `VIDEO` output."""
result = BytesIO()
await download_url_to_bytesio(video_url, result, timeout=timeout, cls=cls)
await download_url_to_bytesio(video_url, result, timeout=timeout, max_retries=max_retries, cls=cls)
return VideoFromFile(result)