code explained
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