From 19ab611ae507ec67ea2ad270d61145a3954b75cf Mon Sep 17 00:00:00 2001 From: xuerk Date: Fri, 6 Feb 2026 11:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E6=AC=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=B8=ADvideo=5Fid=E5=8F=98=E9=87=8F=E4=BD=9C?= =?UTF-8?q?=E7=94=A8=E5=9F=9F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/utils/note_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/utils/note_helper.py b/backend/app/utils/note_helper.py index 3621b9d..4fedb17 100644 --- a/backend/app/utils/note_helper.py +++ b/backend/app/utils/note_helper.py @@ -18,8 +18,8 @@ def replacer(match): total_seconds = int(mm) * 60 + int(ss) if platform == 'bilibili': - video_id = video_id.replace("_p", "?p=") - url = f"https://www.bilibili.com/video/{video_id}&t={total_seconds}" + processed_video_id = video_id.replace("_p", "?p=") + url = f"https://www.bilibili.com/video/{processed_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':