-
Notifications
You must be signed in to change notification settings - Fork 11
67 lines (57 loc) · 2.28 KB
/
Update Feiyang IPTV.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: 更新 肥羊 IPTV
on:
schedule:
- cron: 0 0/4 * * *
workflow_dispatch:
env:
TZ: Asia/Shanghai
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: GetTime
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S CST')"
- 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 '/NewTV系列/,+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
# 成人源
rm -f Adult.m3u && wget http://adultiptv.net/chs.m3u -O 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.m3u && touch IPTV.m3u
cat CCTV.m3u >> IPTV.m3u
cat CNTV.m3u >> IPTV.m3u
cat Adult.m3u >> IPTV.m3u
sed -i '/#EXTM3U/d' IPTV.m3u
sed -i '1i #EXTM3U' IPTV.m3u
sed -i '/^\s*$/d' IPTV.m3u
# 节目源
rm -f EPG.xml && wget https://epg.112114.xyz/pp.xml -O EPG.xml
echo "Auto Update IPTV in ${{ steps.date.outputs.date }}" > README.md
- name: Push
run: git push -f origin Files