From 7cd35052b71932189204c83370d7387570f3f2cf Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Thu, 2 Dec 2021 14:01:02 +0530 Subject: [PATCH] Removed accept encoding --- play-dl/YouTube/search.ts | 1 - play-dl/YouTube/utils/extractor.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/play-dl/YouTube/search.ts b/play-dl/YouTube/search.ts index ea673ea..cf002d7 100644 --- a/play-dl/YouTube/search.ts +++ b/play-dl/YouTube/search.ts @@ -41,7 +41,6 @@ export async function yt_search(search: string, options: ParseSearchInterface = headers: { 'accept-language': 'en-US,en-IN;q=0.9,en;q=0.8,hi;q=0.7', 'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', - 'accept-encoding' : 'gzip, deflate, br' } }); if (body.indexOf('Our systems have detected unusual traffic from your computer network.') !== -1) diff --git a/play-dl/YouTube/utils/extractor.ts b/play-dl/YouTube/utils/extractor.ts index 85af649..20b0421 100644 --- a/play-dl/YouTube/utils/extractor.ts +++ b/play-dl/YouTube/utils/extractor.ts @@ -127,7 +127,6 @@ export async function video_basic_info(url: string, options: InfoOptions = {}): headers: { 'accept-language': 'en-US,en-IN;q=0.9,en;q=0.8,hi;q=0.7', 'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', - 'accept-encoding' : 'gzip, deflate, br' }, cookies: true }); @@ -330,7 +329,6 @@ export async function playlist_info(url: string, options: PlaylistOptions = {}): headers: { 'accept-language': 'en-US,en-IN;q=0.9,en;q=0.8,hi;q=0.7', 'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', - 'accept-encoding' : 'gzip, deflate, br' } }); if (body.indexOf('Our systems have detected unusual traffic from your computer network.') !== -1)