fix: 修复合并落单集弹幕请求时 source:id 前缀未剥离导致巴哈 videoSn 拼错 - #449
Merged
Conversation
合并结果中的落单集(副源独有、无主源对应)URL 采用 source:id 格式(如 bahamut:50709), 但 getComment 的单源分发分支直接把完整 URL 传给源,未剥离 source: 前缀,导致巴哈源 将 "bahamut:50709" 当作 videoSn 请求(videoSn=bahamut:50709),返回 0 条弹幕。 修复:单源分发复用 sanitizeUrl 剥离 source:id 前缀(sanitizeUrl 由 merge-util 导出), 与合并路径 fetchMergedComments 的分割逻辑一致。
|
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
合并结果中的落单集(副源独有、无主源对应)URL 采用 source:id 格式(如 bahamut:50709), 但 getComment 的单源分发分支直接把完整 URL 传给源,未剥离 source: 前缀,导致巴哈源 将 "bahamut:50709" 当作 videoSn 请求(videoSn=bahamut:50709),返回 0 条弹幕。
修复:单源分发复用 sanitizeUrl 剥离 source:id 前缀(sanitizeUrl 由 merge-util 导出), 与合并路径 fetchMergedComments 的分割逻辑一致。