Files
tubo-live-source-2026092822…/README.md
T

66 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 途播播放器专用直播源
每天自动更新央视、卫视、地方台等频道的直播源,生成标准 M3U 格式文件,可直接被途播播放器订阅使用。
## 功能特性
- 自动采集央视、卫视、地方台直播源
- 每天定时自动更新(cron)
- 生成标准 M3U 格式文件
- 通过 HTTP 服务对外提供访问
- 支持 Docker 部署
## 目录结构
```
tubo-live-source/
├── app.py # Flask Web 服务,对外提供 m3u 文件
├── updater.py # 直播源采集与更新脚本
├── sources.py # 频道源配置
├── requirements.txt # Python 依赖
├── Dockerfile # Docker 构建文件
├── crontab # 定时任务配置
├── output/
│ └── tubo.m3u # 生成的 M3U 文件(自动生成)
└── README.md
```
## 快速开始
### 本地运行
```bash
pip install -r requirements.txt
python updater.py # 生成一次 m3u
python app.py # 启动 web 服务
```
访问:http://localhost:8000/tubo.m3u
### Docker 运行
```bash
docker build -t tubo-live-source .
docker run -d -p 8000:8000 --name tubo tubo-live-source
```
### 定时更新
容器内已配置 cron,每天凌晨 3 点自动更新。
## 途播播放器订阅地址
```
http://<你的服务器IP>:8000/tubo.m3u
```
在途播播放器中添加上述地址即可自动同步频道。
## 自定义频道
编辑 `sources.py` 中的 `CHANNELS` 列表即可增删频道。
## License
MIT