From d6d6e24371cef6fca57f82ac0b928365ed392f39 Mon Sep 17 00:00:00 2001 From: peterpt Date: Thu, 1 Feb 2018 17:35:51 -0600 Subject: [PATCH] bug fix added a 4 seconds check between servers because some servers may take more than 2 seconds to start sending the stream , and this way iptv-check will wait 4 seconds for data --- iptv-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptv-check b/iptv-check index 780d99f..3b16e8b 100755 --- a/iptv-check +++ b/iptv-check @@ -113,7 +113,7 @@ case "$chkurl" in http|rtmp|HTTP) wget -q "$chkf" -O "$path/temp/stream" & echo $! > "$path/temp/pid.tmp" pid=$(sed -n 1p < "$path/temp/pid.tmp") -sleep 2 +sleep 4 rpid=$(ps -p "$pid" -o pid= | awk '{print$1}') if [[ "$rpid" == "$pid" ]] then