加江苏移动 HTTP/HLS 源;check.sh 支持 ALL=1 查非 IPv6 条目;仓名改 iptv-live
58 条源 2026-11-28 串行实测 58/58 能播(h264 1080p/576p),普通宽带可达,不需 IPTV VLAN。
This commit is contained in:
1 parent
1a631eefc7
commit
1611fda058
3 files changed
+129
-4
No files matched your search
@@ -17,6 +17,7 @@ awk '/^#EXTINF/{n=$0; sub(/.*,/,"",n); next}
|
||||
: > "$tmp/pairs.tsv"
|
||||
declare -A seen=() aaaa=()
|
||||
while IFS=$'\t' read -r n u; do
|
||||
if [ "${ALL:-0}" = 1 ]; then printf '%s\t%s\n' "$n" "$u" >> "$tmp/pairs.tsv"; continue; fi
|
||||
if [[ "$u" == *"://["* ]]; then printf '%s\t%s\n' "$n" "$u" >> "$tmp/pairs.tsv"; continue; fi
|
||||
h=${u#*://}; h=${h%%/*}; h=${h%%:*}
|
||||
if [ -z "${seen[$h]:-}" ]; then
|
||||
@@ -27,7 +28,7 @@ while IFS=$'\t' read -r n u; do
|
||||
done < "$tmp/all.tsv"
|
||||
|
||||
total=$(wc -l < "$tmp/pairs.tsv")
|
||||
[ "$total" -eq 0 ] && { echo "没有 IPv6 条目:$src"; exit 1; }
|
||||
[ "$total" -eq 0 ] && { echo "没有可用条目(默认只查 IPv6,查全部用 ALL=1):$src"; exit 1; }
|
||||
|
||||
probe() {
|
||||
local n="$1" u="$2" body code
|
||||
@@ -44,7 +45,7 @@ export -f probe
|
||||
( while IFS=$'\t' read -r n u; do printf '%s\t%s\n' "${n:-?}" "$u"; done < "$tmp/pairs.tsv" ) |
|
||||
while IFS=$'\t' read -r n u; do probe "$n" "$u"; sleep 0.3; done > "$tmp/res.tsv"
|
||||
|
||||
echo "IPv6 条目 $total 条"
|
||||
echo "$([ "${ALL:-0}" = 1 ] && echo "条目" || echo "IPv6 条目") $total 条"
|
||||
echo "能播 $(grep -c '^OK' "$tmp/res.tsv") 失败 $(grep -c '^FAIL' "$tmp/res.tsv")"
|
||||
echo "--- 能播的 ---"; grep '^OK' "$tmp/res.tsv" | cut -f3,4 || echo "(无)"
|
||||
echo "--- 失败原因 ---"; grep '^FAIL' "$tmp/res.tsv" | cut -f2 | sort | uniq -c
|
||||
Reference in new issue
Block a user