From 219d88b2005431c6697f04e1fa2c5e8528a9ce57 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 20 Mar 2025 16:45:17 +0600 Subject: [PATCH] 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 --- src/utils/Constants.ts | 8 +++++--- src/utils/HTTPClient.ts | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 9099cfd4..3750cea1 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -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', diff --git a/src/utils/HTTPClient.ts b/src/utils/HTTPClient.ts index 0957b45a..a826c05b 100644 --- a/src/utils/HTTPClient.ts +++ b/src/utils/HTTPClient.ts @@ -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;