Skip to content

update list

update list #79

Workflow file for this run

name: update list
on:
watch:
types: started
schedule:
- cron: "00 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set git identity
run : |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
sudo timedatectl set-timezone "Asia/Shanghai"
- 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 's/group-title="/group-title="IPv4·/g' 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 's/group-title="/group-title="IPv6·/g' IPTV-v6.m3u
# Global
rm -f Global.m3u && wget https://raw.githubusercontent.com/YueChan/Live/main/Global.m3u -O Global.m3u
# IPTV整合源
rm -f IPTV.m3u && touch IPTV.m3u
cat IPTV-v6.m3u >> IPTV.m3u
cat IPTV-v4.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
rm -f IPTV-v4.m3u
rm -f IPTV-v6.m3u
rm -f Global.m3u
# 节目源
rm -f EPG.xml && wget https://epg.112114.xyz/pp.xml -O EPG.xml
# Radio
wget https://raw.githubusercontent.com/fanmingming/live/main/radio/m3u/fm.m3u -O radio_1.m3u
sed -i '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
# 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
rm -f Adult_adultiptv.m3u && 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 -i 's/group-title="/group-title="IPTV·/g' Adult_adultiptv.m3u
# YueChan Adult
rm -f Adult_YueChan.m3u && wget https://raw.githubusercontent.com/YueChan/Live/main/Adult.m3u -O Adult_YueChan.m3u
sed -i 's/成人/YueChan/' Adult_YueChan.m3u
sed -i 's/group-title="/group-title="IPTV·/g' Adult_YueChan.m3u
# YanG-1989 Adult
rm -f Adult_YanG-1989.m3u && wget https://raw.githubusercontent.com/jiaoting/IPTV/Files/AdultVOD.m3u -O Adult_YanG-1989.m3u
sed -i '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
- name: Apply
run: |
Emoji=("🎉" "🤞" "✨" "🎁" "🎈" "🎄" "🎨" "💋" "🍓" "🍕" "🍉" "💐" "🌴" "🚀" "🛸" "🗽" "⛅" "🌈" "🔥" "⛄" "🐶" "🏅" "🦄" "🐤")
git add .
git commit -m "${Emoji[$[$RANDOM % ${#Emoji[@]}]]} Sync $(date +%Y-%m-%d" "%H:%M:%S)"
git push -f