mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Added User agents support
This commit is contained in:
@@ -40,9 +40,8 @@ export async function yt_search(search: string, options: ParseSearchInterface =
|
||||
}
|
||||
}
|
||||
const body = await request(url, {
|
||||
headers: {
|
||||
'accept-language': 'en-US,en;q=0.9',
|
||||
'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',
|
||||
headers: {
|
||||
'accept-language': 'en-US,en;q=0.9'
|
||||
}
|
||||
});
|
||||
if (body.indexOf('Our systems have detected unusual traffic from your computer network.') !== -1)
|
||||
|
||||
Reference in New Issue
Block a user