forked from Moexin/IPTV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f1abee8
Showing
12 changed files
with
207,498 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: Update | ||
|
||
on: | ||
push: | ||
watch: | ||
types: started | ||
schedule: | ||
- cron: 0,30 * * * * | ||
|
||
env: | ||
TZ: Asia/Shanghai | ||
|
||
jobs: | ||
Update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: GetTime | ||
run: echo "GET_TIME=$(date +'%Y-%m-%d %H:%M:%S CST')" >> $GITHUB_ENV | ||
|
||
- name: Update | ||
run: | | ||
# 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 | ||
# 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 | ||
# IPTV整合源 | ||
rm -f IPTV.m3u && touch 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 | ||
#标识更新日期 | ||
sed '/Auto Update IPTV & Radio in/d' README.md | ||
sed -i '1i Auto Update IPTV & Radio in ${GET_TIME}' 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 "${GET_TIME}" | ||
git branch -D Files | ||
git branch -m Files | ||
- name: Push | ||
run: git push -f origin Files |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.