From caa4619aab569ab6aa0358dca1fbbbeedb85254f Mon Sep 17 00:00:00 2001 From: xuerk Date: Thu, 5 Feb 2026 15:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=93=94=E5=93=A9=E5=93=94?= =?UTF-8?q?=E5=93=A9=E8=A7=86=E9=A2=91=E5=8E=9F=E7=89=87url=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/utils/note_helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/utils/note_helper.py b/backend/app/utils/note_helper.py index 430c3a0..3621b9d 100644 --- a/backend/app/utils/note_helper.py +++ b/backend/app/utils/note_helper.py @@ -18,7 +18,8 @@ def replace_content_markers(markdown: str, video_id: str, platform: str = 'bilib total_seconds = int(mm) * 60 + int(ss) if platform == 'bilibili': - url = f"https://www.bilibili.com/video/{video_id}?t={total_seconds}" + video_id = video_id.replace("_p", "?p=") + url = f"https://www.bilibili.com/video/{video_id}&t={total_seconds}" elif platform == 'youtube': url = f"https://www.youtube.com/watch?v={video_id}&t={total_seconds}s" elif platform == 'douyin':