Open
Conversation
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.
问题
原项目中默认的弹幕服务器
subtitle.chen310.repl.co已经失效(Replit 免费服务下线),导致用户无法使用弹幕功能。解决方案
1. 新增
danmaku-server/弹幕解析 API 服务基于 FastAPI 编写了一个全新的、生产级的弹幕解析后端服务,功能完全兼容原有协议:
GET /subtitle?cid={cid}&font=...&font_size=...&alpha=...— 从 B 站获取 XML 弹幕,转换为标准.ass字幕格式GET /subtitle?url={url}— 代理 B 站 JSON 字幕并转为.ass格式GET /subtitle?bvid={bvid}— 自动从 BV 号解析 cidGET /health和GET /ping生产级特性:
2. 更新默认弹幕服务器地址
更新
Bilibili_Config.json中的danmaku.server:公益弹幕服务
https://api.mulingowo.cn已上线运行,用户无需自行搭建即可使用。3. 用户如需自行部署
cd danmaku-server docker compose up -d --build然后修改
Bilibili_Config.json:文件变更
danmaku-server/main.pydanmaku-server/requirements.txtdanmaku-server/Dockerfiledanmaku-server/docker-compose.ymldanmaku-server/.gitignoreMedia/PlayParse/Bilibili_Config.json测试验证