Fix checkstyle

This commit is contained in:
litetex 2025-01-23 20:37:22 +01:00
parent 746b36e80d
commit 17f0b0d7d3
No known key found for this signature in database
GPG Key ID: 525B43E6039B3689

View File

@ -239,8 +239,8 @@ public final class YoutubeParsingHelper {
private static final String IOS_OS_VERSION = "18.1.0.22B83"; private static final String IOS_OS_VERSION = "18.1.0.22B83";
/** /**
* Spoofing an iPhone 15 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app. To be * Spoofing an iPhone 15 Pro Max running iOS 18.1.0 with the hardcoded version of the iOS app.
* used in the user agent for requests. * To be used in the user agent for requests.
* *
* @see #IOS_OS_VERSION * @see #IOS_OS_VERSION
*/ */
@ -1412,7 +1412,8 @@ 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 15 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; "