Spaces:
Running
Running
Fix: save Kling Motion video to settings.paths.output_dir (matches serve endpoint)
Browse files
src/content_engine/api/routes_video.py
CHANGED
|
@@ -381,7 +381,8 @@ async def _generate_kling_motion_video(
|
|
| 381 |
|
| 382 |
# Download and save
|
| 383 |
_video_jobs[job_id]["message"] = "Downloading video..."
|
| 384 |
-
|
|
|
|
| 385 |
output_dir.mkdir(parents=True, exist_ok=True)
|
| 386 |
filename = f"kling_motion_{job_id}.mp4"
|
| 387 |
output_path = output_dir / filename
|
|
|
|
| 381 |
|
| 382 |
# Download and save
|
| 383 |
_video_jobs[job_id]["message"] = "Downloading video..."
|
| 384 |
+
from content_engine.config import settings
|
| 385 |
+
output_dir = settings.paths.output_dir / "videos"
|
| 386 |
output_dir.mkdir(parents=True, exist_ok=True)
|
| 387 |
filename = f"kling_motion_{job_id}.mp4"
|
| 388 |
output_path = output_dir / filename
|