IPTV/.github/workflows/test_playlist.yml

52 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-08-04 18:59:12 +02:00
name: Test IPTV file quality
on:
push:
2022-09-19 19:17:37 +02:00
branches: [ master ]
workflow_dispatch:
2022-08-04 18:59:12 +02:00
jobs:
test:
2022-09-29 11:46:09 +02:00
runs-on: ubuntu-latest
2022-08-04 18:59:12 +02:00
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "20.10.x"
2022-08-04 18:59:12 +02:00
- name: Install m3u-linter and check the playlist
run: |
npm install -g m3u-linter || true
cat <<EOF > M3u-linter.config.json
{
"files": ["playlist1.m3u", "playlist2.m3u"],
"rules": {
"no-empty-lines": true,
"require-header": true,
"attribute-quotes": true,
"require-info": true,
"no-trailing-spaces": true,
"no-whitespace-before-title": true,
2022-09-29 12:07:49 +02:00
"no-multi-spaces": false,
2022-08-04 18:59:12 +02:00
"no-extra-comma": true,
2022-09-29 12:07:49 +02:00
"space-before-paren": false,
2022-08-04 18:59:12 +02:00
"no-dash": true
}
}
EOF
ls -lar ./ || true
cat playlist.m3u8 || true
2022-09-29 11:52:23 +02:00
m3u-linter -c ./M3u-linter.config.json ./playlist.m3u8
2022-08-04 18:59:12 +02:00
- name: Install IPTV Checker and check the playlist
run: |
npm install -g iptv-checker || true
mkdir -p output
2022-09-29 12:27:15 +02:00
sudo apt-get install -y ffmpeg
2022-08-04 18:59:12 +02:00
iptv-checker -o output -p 100 -t 120000 ./playlist.m3u8