fix: 修复 Bangumi-Data 拆分季条目映射同一源 id 导致重复请求 - #450
Merged
Conversation
Bangumi-Data 将拆分季番剧(如 Re:0 第四季的丧失篇/夺还篇)拆为多个条目, 但这些条目的源站点 id 相同(如 anidb 均指向 dandan 19242)。searchBangumiData 组装结果时未按源去重,导致源对同一 id 重复请求、产生标题随机的重复条目。 修复:抽出 dedupeBangumiSearchResults,精确匹配优先排序后按 matchedSiteKey:siteId 去重,同源多条目保留标题精确命中检索词的一条、其余标题并入别名;tmdb 不分季且 按标题消费,不参与去重。
|
@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.
Bangumi-Data 将拆分季番剧(如 Re:0 第四季的丧失篇/夺还篇)拆为多个条目,
但这些条目的源站点 id 相同(如 anidb 均指向 dandan 19242)。searchBangumiData 组装结果时未按源去重,导致源对同一 id 重复请求、产生标题随机的重复条目。
修复:抽出 dedupeBangumiSearchResults,精确匹配优先排序后按 matchedSiteKey:siteId 去重,同源多条目保留标题精确命中检索词的一条、其余标题并入别名;tmdb 不分季且
按标题消费,不参与去重。