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.
This commit is contained in:
LuanRT
2022-12-20 18:34:50 -03:00
committed by GitHub
parent 6f3deaf16a
commit fb2e237284
2 changed files with 6 additions and 3 deletions

View File

@@ -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,

View File

@@ -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'