Some fixes

This commit is contained in:
killer069
2021-12-26 15:34:31 +05:30
parent 9d24008a2b
commit 8f805bbbdd
6 changed files with 31 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ export async function yt_search(search: string, options: ParseSearchInterface =
}
const body = await request(url, {
headers: {
'accept-language': 'en-US,en;q=0.9'
'accept-language': options.language || 'en-US;q=0.9'
}
});
if (body.indexOf('Our systems have detected unusual traffic from your computer network.') !== -1)