mirror of
https://github.com/doms9/iptv.git
synced 2026-06-06 02:43:05 +02:00
update M3U8
This commit is contained in:
parent
6445b6c25e
commit
61b76e50e5
3 changed files with 372 additions and 598 deletions
480
M3U8/TV.m3u8
480
M3U8/TV.m3u8
File diff suppressed because it is too large
Load diff
480
M3U8/events.m3u8
480
M3U8/events.m3u8
File diff suppressed because it is too large
Load diff
10
health.sh
10
health.sh
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
|
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
|
||||||
MAX_JOBS=10
|
MAX_JOBS=10
|
||||||
base_file="./M3U8/base.m3u8"
|
BASE_FILE="./M3U8/base.m3u8"
|
||||||
README="./readme.md"
|
README="./readme.md"
|
||||||
STATUSLOG=$(mktemp)
|
STATUSLOG=$(mktemp)
|
||||||
|
|
||||||
|
|
@ -63,11 +63,11 @@ get_status() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_links() {
|
check_links() {
|
||||||
total_urls=$(grep -cE '^https?://' "$base_file")
|
total_urls=$(grep -cE '^https?://' "$BASE_FILE")
|
||||||
channel_num=0
|
channel_num=0
|
||||||
name=""
|
name=""
|
||||||
|
|
||||||
printf "Checking %d links from %s\n" "$total_urls" "$base_file"
|
printf "Checking %d links from %s\n" "$total_urls" "$BASE_FILE"
|
||||||
|
|
||||||
echo "| Channel | Error (Code) | Link |" >"$STATUSLOG"
|
echo "| Channel | Error (Code) | Link |" >"$STATUSLOG"
|
||||||
echo "| ------- | ------------ | ---- |" >>"$STATUSLOG"
|
echo "| ------- | ------------ | ---- |" >>"$STATUSLOG"
|
||||||
|
|
@ -88,7 +88,7 @@ check_links() {
|
||||||
((channel_num++))
|
((channel_num++))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done < <(cat "$base_file")
|
done < <(cat "$BASE_FILE")
|
||||||
|
|
||||||
wait
|
wait
|
||||||
echo -e "\nDone."
|
echo -e "\nDone."
|
||||||
|
|
@ -137,6 +137,8 @@ write_readme() {
|
||||||
} >"$README"
|
} >"$README"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ ! -f "$BASE_FILE" ]] && exit 1
|
||||||
|
|
||||||
check_links
|
check_links
|
||||||
write_readme
|
write_readme
|
||||||
rm "$STATUSLOG"
|
rm "$STATUSLOG"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue