Skip to content

Commit a13510b

Browse files
committed
[YouTube] Update clients info
1 parent f4931d8 commit a13510b

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private YoutubeParsingHelper() {
152152
* The client version for InnerTube requests with the {@code WEB} client, used as the last
153153
* fallback if the extraction of the real one failed.
154154
*/
155-
private static final String HARDCODED_CLIENT_VERSION = "2.20240410.01.00";
155+
private static final String HARDCODED_CLIENT_VERSION = "2.20240718.01.00";
156156

157157
/**
158158
* The hardcoded client version of the Android app used for InnerTube requests with this
@@ -163,7 +163,7 @@ private YoutubeParsingHelper() {
163163
* such as <a href="https://www.apkmirror.com/apk/google-inc/youtube/">APKMirror</a>.
164164
* </p>
165165
*/
166-
private static final String ANDROID_YOUTUBE_CLIENT_VERSION = "19.13.36";
166+
private static final String ANDROID_YOUTUBE_CLIENT_VERSION = "19.28.35";
167167

168168
/**
169169
* The hardcoded client version of the iOS app used for InnerTube requests with this client.
@@ -174,7 +174,7 @@ private YoutubeParsingHelper() {
174174
* Store page of the YouTube app</a>, in the {@code What’s New} section.
175175
* </p>
176176
*/
177-
private static final String IOS_YOUTUBE_CLIENT_VERSION = "19.14.3";
177+
private static final String IOS_YOUTUBE_CLIENT_VERSION = "19.28.1";
178178

179179
/**
180180
* The hardcoded client version used for InnerTube requests with the TV HTML5 embed client.
@@ -190,7 +190,7 @@ private YoutubeParsingHelper() {
190190
* The hardcoded client version used for InnerTube requests with the YouTube Music desktop
191191
* client.
192192
*/
193-
private static final String HARDCODED_YOUTUBE_MUSIC_CLIENT_VERSION = "1.20240403.01.00";
193+
private static final String HARDCODED_YOUTUBE_MUSIC_CLIENT_VERSION = "1.20240715.01.00";
194194

195195
private static String clientVersion;
196196

@@ -219,31 +219,31 @@ private YoutubeParsingHelper() {
219219
* information.
220220
* </p>
221221
*/
222-
private static final String IOS_DEVICE_MODEL = "iPhone15,4";
222+
private static final String IOS_DEVICE_MODEL = "iPhone16,2";
223223

224224
/**
225-
* Spoofing an iPhone 15 running iOS 17.4.1 with the hardcoded version of the iOS app. To be
226-
* used for the {@code "osVersion"} field in JSON POST requests.
225+
* Spoofing an iPhone 15 Pro Max running iOS 17.5.1 with the hardcoded version of the iOS app.
226+
* To be used for the {@code "osVersion"} field in JSON POST requests.
227227
* <p>
228228
* The value of this field seems to use the following structure:
229229
* "iOS major version.minor version.patch version.build version", where
230230
* "patch version" is equal to 0 if it isn't set
231231
* The build version corresponding to the iOS version used can be found on
232-
* <a href="https://theapplewiki.com/wiki/Firmware/iPhone/17.x#iPhone_15">
233-
* https://theapplewiki.com/wiki/Firmware/iPhone/17.x#iPhone_15</a>
232+
* <a href="https://theapplewiki.com/wiki/Firmware/iPhone/17.x#iPhone_15_Pro_Max">
233+
* https://theapplewiki.com/wiki/Firmware/iPhone/17.x#iPhone_15_Pro_Max</a>
234234
* </p>
235235
*
236236
* @see #IOS_USER_AGENT_VERSION
237237
*/
238-
private static final String IOS_OS_VERSION = "17.4.1.21E237";
238+
private static final String IOS_OS_VERSION = "17.5.1.21F90";
239239

240240
/**
241-
* Spoofing an iPhone 15 running iOS 17.4.1 with the hardcoded version of the iOS app. To be
241+
* Spoofing an iPhone 15 running iOS 17.5.1 with the hardcoded version of the iOS app. To be
242242
* used in the user agent for requests.
243243
*
244244
* @see #IOS_OS_VERSION
245245
*/
246-
private static final String IOS_USER_AGENT_VERSION = "17_4_1";
246+
private static final String IOS_USER_AGENT_VERSION = "17_5_1";
247247

248248
private static Random numberGenerator = new Random();
249249

@@ -1384,7 +1384,7 @@ public static String getAndroidUserAgent(@Nullable final Localization localizati
13841384
*/
13851385
@Nonnull
13861386
public static String getIosUserAgent(@Nullable final Localization localization) {
1387-
// Spoofing an iPhone 15 running iOS 17.4.1 with the hardcoded version of the iOS app
1387+
// Spoofing an iPhone 15 running iOS 17.5.1 with the hardcoded version of the iOS app
13881388
return "com.google.ios.youtube/" + IOS_YOUTUBE_CLIENT_VERSION
13891389
+ "(" + IOS_DEVICE_MODEL + "; U; CPU iOS "
13901390
+ IOS_USER_AGENT_VERSION + " like Mac OS X; "

0 commit comments

Comments
 (0)