From d37c8367874b337bd88ab18fb0051bf1c379adf2 Mon Sep 17 00:00:00 2001 From: Tufayel Ahmed <39314838+TufayelLUS@users.noreply.github.com> Date: Sat, 14 Nov 2020 23:11:29 +0600 Subject: [PATCH] Updated user agent for downloading video Somehow my server doesn't work, maybe server IP is flagged for too many requests. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f1e8609..3cdb313 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ function downloadVideo($video_url, $geturl = false) CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => true, CURLINFO_HEADER_OUT => true, - CURLOPT_USERAGENT => 'Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Mobile Safari/537.36', + CURLOPT_USERAGENT => 'okhttp', CURLOPT_ENCODING => "utf-8", CURLOPT_AUTOREFERER => true, CURLOPT_COOKIEJAR => 'cookie.txt',