mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 01:22:11 +00:00
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:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user