Skip to content

Auto Update

Auto Update #22

Workflow file for this run

name: Auto Update
on:
workflow_dispatch:
watch:
types: [started]
schedule:
- cron: 0 */1 * * *
push:
paths-ignore:
- .github
- .gitignore
- LICENSE
env:
TZ: Asia/Shanghai
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GetTime
run: echo "DATE=$(date +'%Y-%m-%d %H:%M:%S CST' | sed 's/ CST$//')" >> $GITHUB_ENV
- name: Update
run: |
# 央视源
rm -f CCTV.m3u && wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CCTV.m3u
sed -i -n '/央视/,+1p' CCTV.m3u
sed -i '1i #EXTM3U' CCTV.m3u
sed -i '/^\s*$/d' CCTV.m3u
# 卫视源
rm -f CNTV.m3u && touch CNTV.m3u
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CNTV1.m3u && sed -i -n '/卫视/,+1p' CNTV1.m3u
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CNTV2.m3u && sed -i -n '/数字/,+1p' CNTV2.m3u
cat CNTV1.m3u >> CNTV.m3u
cat CNTV2.m3u >> CNTV.m3u
rm -f CNTV1.m3u CNTV2.m3u
sed -i '1i #EXTM3U' CNTV.m3u
sed -i '/^\s*$/d' CNTV.m3u
# 成人源
rm -f Adult.m3u && wget http://adultiptv.net/chs.m3u -O Adult.m3u
sed -i -n '/XXX/,+1p' Adult.m3u
sed -i 's/XXX/成人频道/' Adult.m3u
sed -i 's/AdultIPTV.net //g' Adult.m3u
# wget https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u -O AdultVideo.txt
# sed -i -n '/日本/,+1p' AdultVideo.txt
# sed -i 's/日本/成人视频/' AdultVideo.txt
# echo '' >> Adult.m3u && cat AdultVideo.txt >> Adult.m3u
# rm -f AdultVideo.txt
sed -i '/^\s*$/d' Adult.m3u
# 整合源
rm -f IPTV-ipv6.m3u && touch IPTV-ipv6.m3u
cat CCTV.m3u >> IPTV-ipv6.m3u
cat CNTV.m3u >> IPTV-ipv6.m3u
cat Adult.m3u >> IPTV-ipv6.m3u
sed -i '/#EXTM3U/d' IPTV-ipv6.m3u
sed -i '1i #EXTM3U' IPTV-ipv6.m3u
sed -i '/^\s*$/d' IPTV-ipv6.m3u
rm -f Adult.m3u CCTV.m3u CNTV.m3u
# 节目源
rm -f EPG.xml && wget https://epg.112114.xyz/pp.xml -O EPG.xml
echo "<p align='center'><img alt='live.fanmingming.com' src='https://live.fanmingming.com/logo.png'></p>
<h3 align='center'>✯ 一个每日自动更新的 📺IPTV 直播源项目,目前仅支持IPV6 ✯</h3>
> 已于 $DATE 自动更新频道。
## 使用
#### 直播源
- IPV4地址: 暂无
- IPV6地址: [https://ghp.ci/https://raw.githubusercontent.com/kilvn/iptv/master/IPTV-ipv6.m3u](https://ghp.ci/https://raw.githubusercontent.com/kilvn/iptv/master/IPTV-ipv6.m3u)
#### 回看源
- EPG 地址: [https://ghp.ci/https://raw.githubusercontent.com/kilvn/iptv/master/EPG.xml](https://ghp.ci/https://raw.githubusercontent.com/kilvn/iptv/master/EPG.xml)
## 声明
此项目是个人为了兴趣而开发, 仅用于学习和测试。 所用API皆从第三方网站收集, 不提供任何破解和在线服务内容。
## 致谢
- [fanmingming/live](https://github.com/fanmingming/live)
## Star History
<picture>
<source media='(prefers-color-scheme: dark)' srcset='https://api.star-history.com/svg?repos=kilvn/iptv&type=Date&theme=dark' />
<source media='(prefers-color-scheme: light)' srcset='https://api.star-history.com/svg?repos=kilvn/iptv&type=Date' />
<img alt='Star History Chart' src='https://api.star-history.com/svg?repos=kilvn/iptv&type=Date' />
</picture>" > README.md
- name: Clean
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout --orphan latest_branch
git add -A
git commit -am "${DATE} 自动更新."
git branch -D master
git branch -m master
- name: Push
run: git push -f origin master