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
This commit is contained in:
peterpt 2018-02-01 17:35:51 -06:00 committed by GitHub
parent 1ce06c8d09
commit d6d6e24371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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