From 9f066026344b8962c8379da366bbcbf0b69daa4d Mon Sep 17 00:00:00 2001 From: CI Bot Date: Fri, 17 Jul 2026 14:02:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20black=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=EF=BC=88=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8import=E5=90=8E=E9=87=8D=E6=8E=92=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/app/api/routes/videos.py | 8 +++++--- apps/worker/video_processing/intro_outro_engine.py | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) 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: