AI 生成: AVTV - 自动收集、过滤、去重并生成 m3u 直播源订阅文件,每日自动更新,涵盖央视、卫视及地方台。

This commit is contained in:
admin
2026-09-29 05:40:04 +08:00
commit 2625d08d37
12 changed files with 507 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Update IPTV Playlist
on:
schedule:
# 每天 UTC 02:00(北京时间 10:00)
- cron: "0 2 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run AVTV
run: python main.py
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add output/avtv.m3u
if git diff --cached --quiet; then
echo "No changes"
else
git commit -m "chore: update playlist $(date -u +%Y-%m-%d)"
git push
fi