fix(Constants): Update the iOS client version (#924)

* utils/Constants: update the iOS client version

* utils/HTTPClient: use osName & osVersion for iOS client from Constants
This commit is contained in:
wukko
2025-03-20 16:45:17 +06:00
committed by GitHub
parent 923e9c28e3
commit 219d88b200
2 changed files with 7 additions and 4 deletions

View File

@@ -25,9 +25,11 @@ export const OAUTH = {
export const CLIENTS = {
IOS: {
NAME: 'iOS',
VERSION: '18.06.35',
USER_AGENT: 'com.google.ios.youtube/18.06.35 (iPhone; CPU iPhone OS 14_4 like Mac OS X; en_US)',
DEVICE_MODEL: 'iPhone10,6'
VERSION: '20.11.6',
USER_AGENT: 'com.google.ios.youtube/20.11.6 (iPhone10,4; U; CPU iOS 16_7_7 like Mac OS X)',
DEVICE_MODEL: 'iPhone10,4',
OS_NAME: 'iOS',
OS_VERSION: '16.7.7.20H330'
},
WEB: {
NAME: 'WEB',

View File

@@ -197,7 +197,8 @@ export default class HTTPClient {
ctx.client.clientVersion = Constants.CLIENTS.IOS.VERSION;
ctx.client.clientName = Constants.CLIENTS.IOS.NAME;
ctx.client.platform = 'MOBILE';
ctx.client.osName = 'iOS';
ctx.client.osName = Constants.CLIENTS.IOS.NAME;
ctx.client.osVersion = Constants.CLIENTS.IOS.OS_VERSION;
delete ctx.client.browserName;
delete ctx.client.browserVersion;
break;