forked from MustardChef/IPTVPlaylistChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 1.91 KB
/
main.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
68
69
70
71
72
name: IPTV Playlist Checker
on:
workflow_dispatch:
inputs:
PLAYLIST_URL:
description: 'URL of the playlist to check'
required: true
default: 'https://raw.githubusercontent.com/dxs1256/IPTV/refs/heads/main/live.m3u'
NUM_THREADS:
description: 'Number of threads to use'
type: number
required: true
default: '10'
TIMEOUT:
description: 'Timeout for FFmpeg'
type: number
required: true
default: '25'
# schedule:
# - cron: '0 0 * * *'
jobs:
build:
name: IPTV Playlist Check
runs-on: ubuntu-latest
steps:
- name: Checkout ♻️
uses: actions/checkout@v4
- name: Setup Python 🐍
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install FFMPEG Dependencies 🧑🏭
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install Python Dependencies 🧑🏭
run:
pip install -r requirements.txt
- name: Download playlist to check 📥
run: |
wget -q $PLAYLIST_URL -O playlist.m3u8
env:
PLAYLIST_URL: ${{ inputs.PLAYLIST_URL }}
- name: Download script and check playlist 📺
run: |
python iptvcheck.py -p playlist.m3u8 -s playlistchecked.m3u8 -t $NUM_THREADS -ft $TIMEOUT
env:
NUM_THREADS: ${{ inputs.NUM_THREADS }}
TIMEOUT: ${{ inputs.TIMEOUT }}
- name: Check Files and Folders and Subfolders 📂
run: |
ls -lahR
# - name: Compare the results 🧐
# run: |
# python compareplaylists.py
- name: Upload Results to artifacts 📤
uses: actions/upload-artifact@v4
with:
name: playlistchecked
path: playlistchecked.m3u8
retention-days: 0
compression-level: 6