- Add requests import for direct HTTP video downloads
- Replace complex video object data extraction with direct URL download using requests.get()
- Move file saving logic before download_url_to_video_output call to avoid consuming data stream
- Simplify video data retrieval by downloading directly from URL instead of extracting from video object
- Add timeout parameter (120s) and error handling for HTTP requests
- Improve code clarity by removing conditional checks for different video object attributes
- Replace requests library with comfy_api_nodes download utility for better integration
- Convert run method to async for non-blocking video download operations
- Update input/output types to use IO enum (IO.STRING, IO.BOOLEAN, IO.VIDEO)
- Change return type from STRING file path to VIDEO object for direct video output
- Simplify video handling by using download_url_to_video_output utility function
- Add support for multiple video data access patterns (video_io, get_bytes, BytesIO)
- Improve video saving logic with proper data extraction from video object
- Remove unused os.path and re imports optimization for cleaner code
- Maintains backward compatibility with save_output parameter for optional file persistence
- Add new ModelversePreviewVideo node for downloading and previewing generated videos
- Change all Vidu video generation nodes (extend, i2v, ref2v, startend2v, t2v) to return video URL and task ID instead of downloaded video objects
- Change all Wan AI video generation nodes (i2v, t2v) to return video URL and task ID instead of downloaded video objects
- Remove duplicate VideoFromFile import fallback logic from all video generation modules
- Simplify video handling by delegating download responsibility to preview node
- Improve separation of concerns between generation and preview workflows