代码拉取完成,页面将自动刷新
同步操作将从 jiuer9999/tvlist 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
# Directory for m3u files
M3U_DIR=m3u
# Create m3u directory if it doesn't exist
mkdir -p "$M3U_DIR"
rm "$M3U_DIR/ipv6.m3u"
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O "$M3U_DIR/ipv6.m3u"
# 央视源
rm "$M3U_DIR/CCTV.m3u"
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O "$M3U_DIR/CCTV.m3u"
sed -i -n '/央视频道/,+1p' "$M3U_DIR/CCTV.m3u"
sed -i '1i #EXTM3U' "$M3U_DIR/CCTV.m3u"
sed -i '/^\s*$/d' "$M3U_DIR/CCTV.m3u"
# 卫视源
rm "$M3U_DIR/CNTV.m3u"
for keyword in "卫视频道" "数字频道"; do
wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O "$M3U_DIR/temp.m3u"
sed -i -n "/$keyword/,+1p" "$M3U_DIR/temp.m3u"
cat "$M3U_DIR/temp.m3u" >> "$M3U_DIR/CNTV.m3u"
rm -f "$M3U_DIR/temp.m3u"
done
sed -i '1i #EXTM3U' "$M3U_DIR/CNTV.m3u"
sed -i '/^\s*$/d' "$M3U_DIR/CNTV.m3u"
# 整合源
rm "$M3U_DIR/IPTV.m3u"
cat "$M3U_DIR/CCTV.m3u" "$M3U_DIR/CNTV.m3u" > "$M3U_DIR/IPTV.m3u"
sed -i '/#EXTM3U/d' "$M3U_DIR/IPTV.m3u"
sed -i '1i #EXTM3U' "$M3U_DIR/IPTV.m3u"
sed -i '/^\s*$/d' "$M3U_DIR/IPTV.m3u"
# 节目源
# rm EPG.xml
# wget https://epg.112114.xyz/pp.xml -O EPG.xml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。