This commit is contained in:
doms9 2025-09-17 23:52:37 -04:00
parent eb51119f78
commit 00000d9cc3
5 changed files with 220 additions and 36 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
base_url="https://s.id/ePwXT"
base_file="./M3U8/Base.m3u8"
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
RETRY_COUNT=3
@ -59,10 +59,9 @@ get_status() {
}
check_links() {
echo "Checking links from: $base_url"
echo "Checking links from: $base_file"
channel_num=0
name=""
jobs_running=0
echo "| Channel | Error (Code) | Link |" >"$STATUSLOG"
echo "| ------- | ------------ | ---- |" >>"$STATUSLOG"
@ -78,7 +77,7 @@ check_links() {
get_status "$line" "$name" &
((channel_num++))
fi
done < <(curl -sL -A "$UA" "$base_url")
done < <(cat "$base_file")
wait
echo "Done."