From 15bb13113caec72d2b3c17ab4eef26458fa3f40b Mon Sep 17 00:00:00 2001 From: Tufayel Ahmed <39314838+TufayelLUS@users.noreply.github.com> Date: Sat, 25 Apr 2020 14:05:53 +0600 Subject: [PATCH] Update index.php --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index cfd7442..1624877 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,8 @@ function getContent($url) CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, - CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html', + // Please change user agent below when the script fails to collect video + CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36', CURLOPT_ENCODING => "utf-8", CURLOPT_AUTOREFERER => true, CURLOPT_CONNECTTIMEOUT => 30,