Skip to content

Commit

Permalink
Update Update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaoting authored Jul 9, 2024
1 parent 8c9bcda commit 6ad5426
Showing 1 changed file with 73 additions and 32 deletions.
105 changes: 73 additions & 32 deletions .github/workflows/Update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Update

on:
push:
watch:
types: started
schedule:
- cron: 0,30 * * * *

Expand All @@ -20,47 +22,86 @@ jobs:

- 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
# IPTV-v4
rm -f IPTV-v4.m3u && wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/index.m3u -O IPTV-v4.m3u
sed -i -n '/group-title/,+1p' IPTV-v4.m3u
sed -i '1i #EXTM3U' IPTV-v4.m3u
sed -i '/^\s*$/d' IPTV-v4.m3u
# IPTV-v6
rm -f IPTV-v6.m3u && wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O IPTV-v6.m3u
sed -i -n '/group-title/,+1p' IPTV-v6.m3u
sed -i '1i #EXTM3U' IPTV-v6.m3u
sed -i '/^\s*$/d' IPTV-v6.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
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CNTV3.m3u && sed -i -n '/百视/,+1p' CNTV3.m3u
cat CNTV1.m3u >> CNTV.m3u
cat CNTV2.m3u >> CNTV.m3u
cat CNTV3.m3u >> CNTV.m3u
rm -f CNTV1.m3u CNTV2.m3u CNTV3.m3u
sed -i '1i #EXTM3U' CNTV.m3u
sed -i '/^\s*$/d' CNTV.m3u
# Global
rm -f Global.m3u && wget https://raw.githubusercontent.com/YueChan/Live/main/Global.m3u -O Global.m3u
sed -i -n '/group-title/,+1p' Global.m3u
sed -i '1i #EXTM3U' Global.m3u
sed -i '/^\s*$/d' Global.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
# 整合源
# IPTV整合源
rm -f IPTV.m3u && touch IPTV.m3u
cat CCTV.m3u >> IPTV.m3u
cat CNTV.m3u >> IPTV.m3u
cat Adult.m3u >> IPTV.m3u
sed 's/group-title="/group-title="IPv4·/g' IPTV-v4.m3u && cat IPTV-v4.m3u >> IPTV.m3u
sed 's/group-title="/group-title="IPv6·/g' IPTV-v6.m3u && cat IPTV-v6.m3u >> IPTV.m3u
cat Global.m3u >> IPTV.m3u
sed -i '/#EXTM3U/d' IPTV.m3u
sed -i '1i #EXTM3U' IPTV.m3u
sed -i '/^\s*$/d' IPTV.m3u
# Radio
wget https://raw.githubusercontent.com/fanmingming/live/main/radio/m3u/fm.m3u -O radio-1.m3u
sed -i -n '/#EXTINF:/,+1p' radio-1.m3u
sed 's/\(tvg-logo=[^,]*\),/\1 group-title="FM",/g' radio-1.m3u
wget https://raw.githubusercontent.com/fanmingming/live/main/radio/m3u/index.m3u -O radio-2.m3u
sed -i -n '/group-title/,+1p' radio-2.m3u
# Radio整合源
rm -f Radio.m3u && touch Radio.m3u
cat radio-1.m3u >> Radio.m3u
cat radio-2.m3u >> Radio.m3u
sed -i '1i #EXTM3U' Radio.m3u
sed -i '/^\s*$/d' Radio.m3u
rm -f radio-1.m3u && rm -f radio-2.m3u
# 成人源
# adultiptv.net
wget http://adultiptv.net/chs.m3u -O Adult-adultiptv.m3u
sed -i -n '/XXX/,+1p' Adult-adultiptv.m3u
sed -i 's/XXX/adultiptv/' Adult-adultiptv.m3u
sed -i 's/AdultIPTV.net //g' Adult-adultiptv.m3u
sed 's/group-title="/group-title="IPTV·/g' Adult-adultiptv.m3u
# YueChan Adult
wget https://raw.githubusercontent.com/YueChan/Live/main/Adult.m3u -O Adult-YueChan.m3u
sed -i -n '/group-title=/,+1p' Adult-YueChan.m3u
sed -i 's/成人/YueChan/' Adult-YueChan.m3u
sed 's/group-title="/group-title="IPTV·/g' Adult-YueChan.m3u
# YanG-1989 Adult
wget https://raw.githubusercontent.com/jiaoting/IPTV/Files/AdultVOD.m3u -O Adult-YanG-1989.m3u
sed 's/group-title="/group-title="VOD·/g' Adult-YanG-1989.m3u
# Adult整合源
rm -f Adult.m3u && touch Adult.m3u
cat Adult-adultiptv.m3u >> Adult.m3u
cat Adult-YueChan.m3u >> Adult.m3u
cat Adult-YanG-1989.m3u >> Adult.m3u
sed -i '/#EXTM3U/d' Adult.m3u
sed -i '1i #EXTM3U' Adult.m3u
sed -i '/^\s*$/d' Adult.m3u
rm -f Adult-adultiptv.m3u
rm -f Adult-YueChan.m3u
rm -f Adult-YanG-1989.m3u
# 节目源
rm -f EPG.xml && wget https://epg.112114.xyz/pp.xml -O EPG.xml
#标识更新日期
echo "Auto Update IPTV in ${GET_TIME}" > README.md
- name: Clean
Expand Down

0 comments on commit 6ad5426

Please sign in to comment.