Giter Club home page Giter Club logo

subtitle's Introduction

说明

本项目代码来自大佬chen310的replit库 当你看见本项目时,我默认你已经安装好了BilibiliPotplayer插件,如何安装请访问原项目

实现功能

为项目BilibiliPotPlayer实现弹幕功能 由于大佬提供的replit失效,vercel部署后不绑定自定义域名在境内无法访问, 但是绑定域名就可以了,因此可以通过本项目自行部署弹幕代理服务

部署教程

部署到vercel

Deploy with Vercel

手动部署

  1. fork本项目
  2. 使用github登录vercel
  3. 创建项目,选择刚刚fork的项目,点击import,然后直接deploy即可

1718706674907

  1. 出现success即可

1718709174622

  1. 修改Bilibili_Config.json中下面server字段为你在Vercel中设置的域名

修改前:

 "server": "https://subtitle.chen310.repl.co"

修改后:

 "server": "https://yourdomain.com"
  1. 重启Potplayer

自定义域名

vercel默认域名境内无法直接访问,请前往 Settings-domains添加一个自定义域名,DNS服务商使用Cloudflare的记得关闭小云朵

当出现访问你的域名出现 success即可

若你没有域名,可以直接使用我提供的 https://subtitle.lm379.gq

本地或服务器部署

  1. 安装Python3

如何安装请自行移步这里

  1. 拉取源码
git clone https://github.com/lm379/subtitle.git
  1. 安装依赖 pip3 install -r requirements.txt
  2. 运行
python3 main.py
  1. 测试:访问http://127.0.0.1:9999/或者http://{ip}:9999/ 出现success即可
  2. 修改Bilibili_Config.json中下面server字段为你的代理地址 修改前:
 "server": "https://subtitle.chen310.repl.co"

修改后:

 "server": "http://127.0.0.1:9999"
  1. 重启Potplayer

subtitle's People

Contributors

lm379 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.