Skip to content

fix: 修复合并落单集弹幕请求时 source:id 前缀未剥离导致巴哈 videoSn 拼错 - #449

Merged
huangxd- merged 1 commit into
huangxd-:mainfrom
wan0ge:fix/bahamut-single-source-prefix
Aug 22, 2026
Merged

fix: 修复合并落单集弹幕请求时 source:id 前缀未剥离导致巴哈 videoSn 拼错#449
huangxd- merged 1 commit into
huangxd-:mainfrom
wan0ge:fix/bahamut-single-source-prefix

Conversation

@wan0ge

@wan0ge wan0ge commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

合并结果中的落单集(副源独有、无主源对应)URL 采用 source:id 格式(如 bahamut:50709), 但 getComment 的单源分发分支直接把完整 URL 传给源,未剥离 source: 前缀,导致巴哈源 将 "bahamut:50709" 当作 videoSn 请求(videoSn=bahamut:50709),返回 0 条弹幕。

修复:单源分发复用 sanitizeUrl 剥离 source:id 前缀(sanitizeUrl 由 merge-util 导出), 与合并路径 fetchMergedComments 的分割逻辑一致。

合并结果中的落单集(副源独有、无主源对应)URL 采用 source:id 格式(如 bahamut:50709),
但 getComment 的单源分发分支直接把完整 URL 传给源,未剥离 source: 前缀,导致巴哈源
将 "bahamut:50709" 当作 videoSn 请求(videoSn=bahamut:50709),返回 0 条弹幕。

修复:单源分发复用 sanitizeUrl 剥离 source:id 前缀(sanitizeUrl 由 merge-util 导出),
与合并路径 fetchMergedComments 的分割逻辑一致。
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

@wan0ge is attempting to deploy a commit to the huangxd's projects Team on Vercel.

A member of the Team first needs to authorize it.

@huangxd-
huangxd- merged commit 4cd15e7 into huangxd-:main Aug 22, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants