From fb2e237284e6e483ade48a15c3b802eac92aa2ae Mon Sep 17 00:00:00 2001 From: LuanRT Date: Tue, 20 Dec 2022 18:34:50 -0300 Subject: [PATCH] fix: add YouTube Studio to the list of clients (#261) As of December 16, YouTube Studio (Android) endpoints fail with a "Precondition check failed." message. If a newer version of the YouTube app is used then it throws a 404, indicating that it is now a requirement to use the correct client for YT Studio requests. I would say that's a bit of a bummer as we'll have to keep track of yet another client's version to make sure it doesn't get too outdated. --- src/proto/index.ts | 4 ++-- src/utils/Constants.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/proto/index.ts b/src/proto/index.ts index 9262e6b82..37bcbe7c4 100644 --- a/src/proto/index.ts +++ b/src/proto/index.ts @@ -201,7 +201,7 @@ class Proto { client: { unkparam: 14, clientName: CLIENTS.ANDROID.NAME, - clientVersion: CLIENTS.ANDROID.VERSION + clientVersion: CLIENTS.YTSTUDIO_ANDROID.VERSION } }, target: video_id @@ -263,7 +263,7 @@ class Proto { client: { unkparam: 14, clientName: CLIENTS.ANDROID.NAME, - clientVersion: CLIENTS.ANDROID.VERSION + clientVersion: CLIENTS.YTSTUDIO_ANDROID.VERSION } }, target: video_id, diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 1e9a8690e..a97a59643 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -43,9 +43,12 @@ export const CLIENTS = Object.freeze({ }, ANDROID: { NAME: 'ANDROID', - VERSION: '17.17.32', + VERSION: '17.34.35', SDK_VERSION: '29' }, + YTSTUDIO_ANDROID: { + VERSION: '22.43.101' + }, YTMUSIC_ANDROID: { NAME: 'ANDROID_MUSIC', VERSION: '5.34.51'