Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

video2motion: send a real User-Agent when fetching source video

nirholas1b456ec8654e
diff --git a/workers/model-video2motion/main.py b/workers/model-video2motion/main.py
index 9603e2921..0505706d0 100644
--- a/workers/model-video2motion/main.py
+++ b/workers/model-video2motion/main.py
@@ -169,7 +169,14 @@ def _process(task_id: str, video_url: str, fps: int, seconds: float) -> dict:
workdir = tempfile.mkdtemp(prefix="v2m-")
try:
raw_path = os.path.join(workdir, "raw")
- data = fetch_remote_bytes(video_url, timeout=180, max_bytes=MAX_VIDEO_BYTES)
+ # A real UA: several large hosts (Wikimedia among them) 403 the default
+ # python-httpx agent, and users paste public video URLs directly.
+ data = fetch_remote_bytes(
+ video_url,
+ timeout=180,
+ max_bytes=MAX_VIDEO_BYTES,
+ headers={"user-agent": "three-ws-video2motion/1.0 (+https://three.ws/motion-swap)"},
+ )
with open(raw_path, "wb") as f:
f.write(data)