From f226fb87ce039d3e6a11e8c4195e54fc42041e48 Mon Sep 17 00:00:00 2001 From: eric Date: Sat, 15 Aug 2026 08:14:21 -0500 Subject: [PATCH] =?UTF-8?q?fix(test1):=20=E7=9F=AD=E6=96=87=E6=A1=88?= =?UTF-8?q?=E9=87=8D=E8=AF=95=E6=97=B6=E8=A1=A5=E5=90=8E=E7=BC=80=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=A6=86=E7=9B=96=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- backend/app/x_clips_pipeline.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/app/x_clips_pipeline.py b/backend/app/x_clips_pipeline.py index 9902af3..b4acf50 100644 --- a/backend/app/x_clips_pipeline.py +++ b/backend/app/x_clips_pipeline.py @@ -491,7 +491,10 @@ class XClipsPipeline: caption = str(job.get("caption") or "").strip() or build_caption(job, cfg) bare = "".join(ch for ch in caption if not ch.isspace()) if len(bare) < 8: - caption = build_caption(job, cfg) + suffix = "直播精彩瞬间" + caption = f"{caption} {suffix}".strip() if suffix not in caption else caption + if len("".join(ch for ch in caption if not ch.isspace())) < 8: + caption = build_caption(job, cfg) media_url = str(job.get("media_url") or "").strip() media_key = str(job.get("media_key") or "").strip() clip = str(job.get("clip_path") or "").strip()