iPhone 15 Pro Max instead of 16 in comments

This commit is contained in:
Stypox 2025-01-21 23:09:00 +01:00 committed by GitHub
parent 45645b043b
commit 5b31ff20e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,7 @@ public final class YoutubeParsingHelper {
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
/** /**
* The device machine id for the iPhone 16, used to get 60fps with the {@code iOS} client. * The device machine id for the iPhone 15, used to get 60fps with the {@code iOS} client.
* *
* <p> * <p>
* See <a href="https://gist.github.com/adamawolf/3048717">this GitHub Gist</a> for more * See <a href="https://gist.github.com/adamawolf/3048717">this GitHub Gist</a> for more
@ -223,15 +223,15 @@ public final class YoutubeParsingHelper {
private static final String IOS_DEVICE_MODEL = "iPhone16,2"; private static final String IOS_DEVICE_MODEL = "iPhone16,2";
/** /**
* Spoofing an iPhone 16 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app. * Spoofing an iPhone 15 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app.
* To be used for the {@code "osVersion"} field in JSON POST requests. * To be used for the {@code "osVersion"} field in JSON POST requests.
* <p> * <p>
* The value of this field seems to use the following structure: * The value of this field seems to use the following structure:
* "iOS major version.minor version.patch version.build version", where * "iOS major version.minor version.patch version.build version", where
* "patch version" is equal to 0 if it isn't set * "patch version" is equal to 0 if it isn't set
* The build version corresponding to the iOS version used can be found on * The build version corresponding to the iOS version used can be found on
* <a href="https://theapplewiki.com/wiki/Firmware/iPhone/18.x#iPhone_16_Pro_Max"> * <a href="https://theapplewiki.com/wiki/Firmware/iPhone/18.x#iPhone_15_Pro_Max">
* https://theapplewiki.com/wiki/Firmware/iPhone/18.x#iPhone_16_Pro_Max</a> * https://theapplewiki.com/wiki/Firmware/iPhone/18.x#iPhone_15_Pro_Max</a>
* </p> * </p>
* *
* @see #IOS_USER_AGENT_VERSION * @see #IOS_USER_AGENT_VERSION
@ -1412,7 +1412,7 @@ public final class YoutubeParsingHelper {
*/ */
@Nonnull @Nonnull
public static String getIosUserAgent(@Nullable final Localization localization) { public static String getIosUserAgent(@Nullable final Localization localization) {
// Spoofing an iPhone 16 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app // Spoofing an iPhone 15 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app
return "com.google.ios.youtube/" + IOS_YOUTUBE_CLIENT_VERSION return "com.google.ios.youtube/" + IOS_YOUTUBE_CLIENT_VERSION
+ "(" + IOS_DEVICE_MODEL + "; U; CPU iOS " + "(" + IOS_DEVICE_MODEL + "; U; CPU iOS "
+ IOS_USER_AGENT_VERSION + " like Mac OS X; " + IOS_USER_AGENT_VERSION + " like Mac OS X; "