mirror of
https://github.com/Free-TV/IPTV.git
synced 2026-09-25 11:31:24 +02:00
Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6a2309f5c | ||
|
|
84bab69d25 | ||
|
|
fd61538924 | ||
|
|
f0e25d79d5 | ||
|
|
a050f22e21 | ||
|
|
b133afc474 |
@@ -0,0 +1,53 @@
|
||||
name: Test IPTV file quality
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- automate
|
||||
push:
|
||||
branches:
|
||||
- automate
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: node
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "16.x"
|
||||
|
||||
- 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,
|
||||
"no-multi-spaces": true,
|
||||
"no-extra-comma": true,
|
||||
"space-before-paren": true,
|
||||
"no-dash": true
|
||||
}
|
||||
}
|
||||
EOF
|
||||
ls -lar ./ || true
|
||||
cat playlist.m3u8 || true
|
||||
m3u-linter -c ./m3u-linter.config.json ./playlist.m3u8
|
||||
|
||||
- name: Install IPTV Checker and check the playlist
|
||||
run: |
|
||||
npm install -g iptv-checker || true
|
||||
mkdir -p output
|
||||
iptv-checker -o output -p 100 -t 120000 ./playlist.m3u8
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
name: Update playlist
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ automate-1 ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-plalist:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Update playlist
|
||||
run: |
|
||||
git config user.name "PlaylistBot"
|
||||
git config user.email "[email protected]"
|
||||
git add .
|
||||
git commit --quiet -m "Update Playlist (GitHub Actions)"
|
||||
git push -f origin automate-1
|
||||
Reference in New Issue
Block a user