Skip to content

Commit

Permalink
fix: add YouTube Studio to the list of clients (#261)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LuanRT authored Dec 20, 2022
1 parent 6f3deaf commit fb2e237
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/proto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit fb2e237

Please sign in to comment.