feat: add ANDROID_MUSIC client

This commit is contained in:
LuanRT
2022-09-05 03:17:07 -03:00
parent a8322e35f5
commit ecac5f4d7e
4 changed files with 12 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ export const CLIENTS = Object.freeze({
NAME: 'ANDROID',
VERSION: '17.17.32',
SDK_VERSION: '29'
},
YTMUSIC_ANDROID: {
NAME: 'ANDROID_MUSIC',
VERSION: '5.17.51'
}
});
export const STREAM_HEADERS = Object.freeze({

View File

@@ -137,6 +137,12 @@ export default class HTTPClient {
ctx.client.clientName = Constants.CLIENTS.ANDROID.NAME;
ctx.client.androidSdkVersion = Constants.CLIENTS.ANDROID.SDK_VERSION;
break;
case 'YTMUSIC_ANDROID':
ctx.client.clientVersion = Constants.CLIENTS.YTMUSIC_ANDROID.VERSION;
ctx.client.clientFormFactor = 'SMALL_FORM_FACTOR';
ctx.client.clientName = Constants.CLIENTS.YTMUSIC_ANDROID.NAME;
ctx.client.androidSdkVersion = Constants.CLIENTS.ANDROID.SDK_VERSION;
break;
default:
break;
}