本项目代码来自大佬chen310的replit库 当你看见本项目时,我默认你已经安装好了BilibiliPotplayer插件,如何安装请访问原项目
为项目BilibiliPotPlayer实现弹幕功能 由于大佬提供的replit失效,vercel部署后不绑定自定义域名在境内无法访问, 但是绑定域名就可以了,因此可以通过本项目自行部署弹幕代理服务
- fork本项目
- 使用github登录vercel
- 创建项目,选择刚刚fork的项目,点击import,然后直接deploy即可
- 出现success即可
- 修改Bilibili_Config.json中下面server字段为你在Vercel中设置的域名
修改前:
"server": "https://subtitle.chen310.repl.co"修改后:
"server": "https://yourdomain.com"- 重启Potplayer
vercel默认域名境内无法直接访问,请前往 Settings-domains添加一个自定义域名,DNS服务商使用Cloudflare的记得关闭小云朵
当出现访问你的域名出现 success即可
若你没有域名,可以直接使用我提供的 https://subtitle.lm379.gq
- 安装Python3
如何安装请自行移步这里
- 拉取源码
git clone https://github.com/lm379/subtitle.git
- 安装依赖
pip3 install -r requirements.txt - 运行
python3 main.py- 测试:访问http://127.0.0.1:9999/或者http://{ip}:9999/ 出现success即可
- 修改Bilibili_Config.json中下面server字段为你的代理地址 修改前:
"server": "https://subtitle.chen310.repl.co"修改后:
"server": "http://127.0.0.1:9999"- 重启Potplayer

