Git Product home page Git Product logo

dyn-live-m3u's Introduction

dyn-live-m3u

可自定义的直播m3u文件生成服务

本项目仅能动态获取房间信息并生成m3u, 而不具有解析房间真实播放链接的能力, 建议搭配 youshandefeiyang/LiveRedirect 使用.

目前仅支持 斗鱼, 虎牙, B站.

尽管已经采取了并发请求设计, 但因为需要获取每个房间的信息, 所以如果配置频道过多的话, 响应速度会严重减慢, 故并不建议配置太多频道, 只按需配置平时常看的就好.

快速开始

Docker

1. 创建配置目录

在你选定的任意位置创建一个目录, 并记录路径

2. 下载镜像

docker pull cedarhuang/dyn-live-m3u:latest

3. 运行镜像

# 请注意修改config路径
docker run -d -p 3658:3658 -v 本地挂载config路径:/config cedarhuang/dyn-live-m3u

4. 访问 http://Docker宿主机IP:3658

如看到m3u配置文本, 则表明成功.

Python (不建议)

如果你本地具有Python3.11环境, 可直接运行.

git clone https://github.com/CedarHuang/dyn-live-m3u.git
cd dyn-live-m3u/src
pip3.11 install -r ../requirements.txt
python3.11 app.py 3658

配置

Docker启动后会自动在挂载的config路径中生成 default.toml,

代理播放链接配置

找到 default.toml 中的:

default = 'http://你的IP:端口/{platform}/{roomid}'

"你的IP:端口" 修改为自己部署的 youshandefeiyang/LiveRedirect 的IP与端口.

频道配置

找到 default.toml 中的:

[[channel]]
simple = 'douyu:3484'
[[channel]]
simple = 'bilibili:732'

将其修改为自己需要的频道信息.
每一个频道都形如:

[[channel]]
simple = '平台(字母形式):房间号'

进阶配置

本服务支持多配置:
访问 http://Docker宿主机IP:3658 默认使用 default.toml
如需使用第二套配置如 second.toml, 则需访问 http://Docker宿主机IP:3658/second

更多配置字段的含义, 在 default.toml 中有详细解释, 请自行查阅修改.

dyn-live-m3u's People

Contributors

cedarhuang 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.