Update youtubeExtractor.ts

This commit is contained in:
CK 2026-03-05 09:43:48 +00:00 committed by GitHub
parent 54173cd704
commit c75f6ae9d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,22 +96,6 @@ const ANDROID_VR_CLIENT_CONTEXT = {
},
};
// ANDROID_SDKLESS — secondary fallback, no PO token needed, updated version.
// Works for most non-age-restricted content.
const ANDROID_CLIENT_CONTEXT = {
client: {
clientName: 'ANDROID',
clientVersion: '20.10.38',
androidSdkVersion: 30,
osName: 'Android',
osVersion: '11',
userAgent:
'com.google.android.youtube/20.10.38 (Linux; U; Android 11) gzip',
hl: 'en',
gl: 'US',
},
};
// TV client — no PO token needed, good format availability.
const TV_CLIENT_CONTEXT = {
client: {
@ -525,12 +509,6 @@ export class YouTubeExtractor {
context: ANDROID_VR_CLIENT_CONTEXT,
userAgent: 'com.google.android.apps.youtube.vr.oculus/1.60.19 (Linux; U; Android 12L; eureka-user Build/SQ3A.220605.009.A1) gzip',
},
{
name: 'ANDROID',
clientNameId: '3',
context: ANDROID_CLIENT_CONTEXT,
userAgent: 'com.google.android.youtube/20.10.38 (Linux; U; Android 11) gzip',
},
{
name: 'TV',
clientNameId: '7',