kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
Fix checkstyle
rodzic
746b36e80d
commit
17f0b0d7d3
|
@ -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; "
|
||||||
|
|
Ładowanie…
Reference in New Issue