mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-12-03 15:30:11 +01:00
Apply requested changes in YoutubeParsingHelper
This commit is contained in:
parent
301b9fa024
commit
f17f7b9842
@ -1264,8 +1264,7 @@ public final class YoutubeParsingHelper {
|
||||
// Spoofing an Android 12 device with the hardcoded version of the Android app
|
||||
return "com.google.android.youtube/" + MOBILE_YOUTUBE_CLIENT_VERSION
|
||||
+ " (Linux; U; Android 12; "
|
||||
+ (localization == null ? Localization.DEFAULT.getCountryCode()
|
||||
: localization.getCountryCode())
|
||||
+ (localization != null ? localization : Localization.DEFAULT).getCountryCode()
|
||||
+ ") gzip";
|
||||
}
|
||||
|
||||
@ -1284,10 +1283,8 @@ public final class YoutubeParsingHelper {
|
||||
public static String getIosUserAgent(@Nullable final Localization localization) {
|
||||
// Spoofing an iPhone running iOS 15.4 with the hardcoded mobile client version
|
||||
return "com.google.ios.youtube/" + MOBILE_YOUTUBE_CLIENT_VERSION
|
||||
+ "(" + IOS_DEVICE_MODEL
|
||||
+ "; U; CPU iOS 15_4 like Mac OS X; "
|
||||
+ (localization != null ? localization.getCountryCode()
|
||||
: Localization.DEFAULT.getCountryCode())
|
||||
+ "(" + IOS_DEVICE_MODEL + "; U; CPU iOS 15_4 like Mac OS X; "
|
||||
+ (localization != null ? localization : Localization.DEFAULT).getCountryCode()
|
||||
+ ")";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user