diff --git a/apps/api/app/api/routes/videos.py b/apps/api/app/api/routes/videos.py index b3b325aa4..8a834c6a4 100755 --- a/apps/api/app/api/routes/videos.py +++ b/apps/api/app/api/routes/videos.py @@ -108,7 +108,9 @@ def update_video_review_status( item = use_case.execute(video_id, request.review_status) if item is None: raise HTTPException(status_code=404, detail="Video not found") - logger.info("Video %s review status updated to %s by user %s", video_id, request.review_status, current_user.user_id) + logger.info( + "Video %s review status updated to %s by user %s", video_id, request.review_status, current_user.user_id + ) return _to_video_response(item, storage) @@ -119,7 +121,7 @@ def batch_download_videos( current_user: AuthenticatedUser = Depends(get_current_user), ): """批量下载成片,异步打包 zip。 - + 传入 video_ids 列表,创建一个批量下载任务,任务完成后返回 zip 下载链接。 """ if not request.video_ids: @@ -152,7 +154,7 @@ def get_batch_download_status( from celery.result import AsyncResult task = AsyncResult(job_id, app=celery_app) - + status_map = { "PENDING": "pending", "STARTED": "running", diff --git a/apps/worker/video_processing/intro_outro_engine.py b/apps/worker/video_processing/intro_outro_engine.py index b618a9261..067bc093d 100755 --- a/apps/worker/video_processing/intro_outro_engine.py +++ b/apps/worker/video_processing/intro_outro_engine.py @@ -177,9 +177,7 @@ class IntroOutroEngine: filter_parts = [] # 背景 - filter_parts.append( - f"color=c={config.intro_background}:s={output_width}x{output_height}:d={duration}[bg]" - ) + filter_parts.append(f"color=c={config.intro_background}:s={output_width}x{output_height}:d={duration}[bg]") # 标题 if title: