up
This commit is contained in:
parent
a15691dac3
commit
3fc1444c18
60
.github/workflows/Update.yml
vendored
60
.github/workflows/Update.yml
vendored
@ -1,60 +0,0 @@
|
||||
name: 更新直播源和节目单
|
||||
|
||||
on:
|
||||
workflow_dispatch: # 手动触发
|
||||
schedule:
|
||||
- cron: '0 0/4 * * *' # 每4小时自动执行一次
|
||||
|
||||
env:
|
||||
TZ: Asia/Shanghai # 设置时区
|
||||
|
||||
jobs:
|
||||
Update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 检出仓库
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.LIVELIST }} # 使用自定义token
|
||||
|
||||
- name: 获取当前时间
|
||||
run: echo "DATE=$(date +'%Y-%m-%d %H:%M:%S CST')" >> $GITHUB_ENV
|
||||
|
||||
- name: 更新直播源
|
||||
run: |
|
||||
# 删除旧文件
|
||||
rm -f tv/ipv4.txt tv/v4.txt live_sources.txt EPG.xml
|
||||
|
||||
# 下载IPv4直播源
|
||||
wget -q https://raw.githubusercontent.com/vbskycn/iptv/refs/heads/master/tv/iptv4.txt -O tv/ipv4.txt
|
||||
wget -q http://211.154.28.50:5898/2025.txt -O tv/v4.txt
|
||||
|
||||
# 获取自定义直播源(修复参数拼写错误)
|
||||
curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
|
||||
"http://zhibo.feylen.top/fltv/js/ku9live.php?type=fl.txt" \
|
||||
-o live_sources.txt
|
||||
|
||||
# 下载EPG节目单
|
||||
wget -q https://epg.112114.xyz/pp.xml -O EPG.xml
|
||||
|
||||
- name: 更新README
|
||||
run: |
|
||||
echo "已于 $DATE 更新
|
||||
## Star History
|
||||
<a href='https://star-history.com/#360vip/v4&Date'>
|
||||
<picture>
|
||||
<source media='(prefers-color-scheme: dark)' srcset='https://api.star-history.com/svg?repos=360vip/v4&type=Date&theme=dark' />
|
||||
<source media='(prefers-color-scheme: light)' srcset='https://api.star-history.com/svg?repos=360vip/v4&type=Date' />
|
||||
<img alt='Star History Chart' src='https://api.star-history.com/svg?repos=360vip/v4&type=Date' />
|
||||
</picture>
|
||||
</a>" > README.md
|
||||
|
||||
- name: 提交更改
|
||||
run: |
|
||||
git config --local user.email "actions@126.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit --allow-empty -m "Scheduled update at $DATE"
|
||||
git pull --rebase
|
||||
git push -f
|
83685
tv/EPG.xml
83685
tv/EPG.xml
File diff suppressed because it is too large
Load Diff
2285
tv/dypd.m3u
2285
tv/dypd.m3u
File diff suppressed because it is too large
Load Diff
4165
tv/ipv4.m3u
4165
tv/ipv4.m3u
File diff suppressed because it is too large
Load Diff
2128
tv/ipv4.txt
2128
tv/ipv4.txt
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user