-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.48 KB
/
manual.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
name: M3U Playlist Processor
on:
schedule:
- cron: '0 0 * * 1' # Daily schedule
workflow_dispatch:
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run M3U processing script
run: |
python nm3u.py
- name: Download and concatenate m3u files for iplive
run: |
curl https://iptv-org.github.io/iptv/languages/zho.m3u > zho.m3u
curl https://iptv-org.github.io/iptv/languages/jpn.m3u > jpn.m3u
curl https://iptv-org.github.io/iptv/languages/eng.m3u > eng.m3u
curl https://iptv-org.github.io/iptv/languages/undefined.m3u > undefined.m3u
cat zho.m3u jpn.m3u eng.m3u undefined.m3u > iplive.m3u
- name: Run JP script
run: |
grep -A1 '.jp"' combined_cleaned.m3u >jp.m3u
python grouptitle.py
python tvgname.py
cat itv_p.m3u migu.m3u all0.m3u jp.m3u >allback.m3u
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Your Name"
git add guide.xml
git add combined_cleaned.m3u iplive.m3u migu.m3u jp.m3u allback.m3u
git commit -m "Update m3u files with processed data"
git push