mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user