利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
fix(api): delegate Content-Disposition to FileResponse for safe filename quoting
MihirP85d321df5f92
diff --git a/app/controllers/v1/video.py b/app/controllers/v1/video.pyindex 00ef176b..9f5dfe73 100644--- a/app/controllers/v1/video.py+++ b/app/controllers/v1/video.py@@ -493,12 +493,10 @@ async def download_video(request: Request, file_path: str):tasks_dir = utils.task_dir()video_path = _resolve_path_within_directory(tasks_dir, file_path, request_id)file_path = pathlib.Path(video_path)- filename = file_path.stem+ filename = file_path.nameextension = file_path.suffix- headers = {"Content-Disposition": f"attachment; filename={filename}{extension}"}return FileResponse(path=video_path,- headers=headers,- filename=f"{filename}{extension}",+ filename=filename,media_type=f"video/{extension[1:]}",)