增加弹弹第三方弹幕源实时拉取功能,用于覆盖掉弹弹服务器内缓存的旧弹幕#220
Merged
huangxd- merged 18 commits intohuangxd-:mainfrom Mar 4, 2026
Merged
Conversation
同时传出related接口的偏移值和绑定链接给合并工具的跨源时间轴对齐使用
|
@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. |
👷 Deploy request for danmuapi pending review.Visit the deploys page to approve it
|
Owner
|
感谢鸽子的代码🚀,这个开关是不是改成默认关闭比较合适,应该算一个附加的功能,有人愿意开启就开启 |
Contributor
Author
|
也可以,我一会改一下 |
只在REAL_TIME_PULL_DANDAN实时拉取开启状态或者启用了MERGE_SOURCE_PAIRS合并功能才请求
Contributor
Author
|
好了,顺便做了一下related接口的动态开关,不过就算开着也只在获取弹弹弹幕的时候去请求 |
lilixu3
pushed a commit
to lilixu3/danmu_api
that referenced
this pull request
Mar 4, 2026
* dandan.js:增加related接口,实现拉取绑定的第三方数据源 同时传出related接口的偏移值和绑定链接给合并工具的跨源时间轴对齐使用 * dandan-api.js:挂载dandan源传出的相关参数,同时更新源标签的标记方式 * merge-util.js:接收来自dandan源准确的偏移值和链接信息,替换掉低精度计算 * danmu-util.js:基于准确的源标签做更加完美的相关处理 * envs.js:增加弹弹第三方数据源实时拉取开关,默认开启 * systemsettings.js:增加一个默认值为true的变量保持开启状态 * .env.example:增加弹弹第三方数据源实时拉取开关说明 * Add REAL_TIME_PULL_DANDAN option to README * .env.example:统一弹弹第三方数据源实时拉取说明 * .env.example:将第三方数据源统称为第三方弹幕源 * envs.js:将第三方数据源统称为第三方弹幕源 * README.md:将第三方数据源统称为第三方弹幕源 * merge-util.js:去除已经没有使用的旧函数 * systemsettings.js:REAL_TIME_PULL_DANDAN不再保持true * dandan.js:related接口根据开关动态请求 只在REAL_TIME_PULL_DANDAN实时拉取开启状态或者启用了MERGE_SOURCE_PAIRS合并功能才请求 * envs.js:实时拉取默认设置为关闭 * .env.example:实时拉取默认设置为关闭 * README.md:实时拉取默认设置为关闭
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.
做AI应用到合并功能做不动了,先做点好玩的吧(给予AI一项较为复杂的任务还是太不稳定了,但是朝辅助方向做可以做的很理想,例如将结果所有标题标准化,比直接让它直接选哪些可以关联稳定多了,如果AI在我们现在的自动匹配上效果不明显也可以朝这一块做,只让AI进行结果标题的标准化,逻辑依旧走本地)
弹弹第三方弹幕源实时拉取功能
实现原理是related接口可以查询到弹弹绑定的所有第三方弹幕源,还包括了用户调节的时间轴偏移值甚至,增加这一功能后我们应该真的是目前最完善的dandan源支持者()弹幕是缓存的旧弹幕这一问题都被我们解决掉了233
然后是两个细节优化