diff options
author | Astound <kirito@disroot.org> | 2024-04-06 22:04:14 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-04-06 22:04:14 +0800 |
commit | 6039589f24cd2368b1f14e063b46d4aa78f7b0df (patch) | |
tree | c73810976b80d7457e0c7484c9cc4cf81291e0d9 /youtube/util.py | |
parent | d4cba7eb6c82810b944e091308d91b771ad513ee (diff) | |
download | yt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.tar.lz yt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.tar.xz yt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.zip |
Update `android` params
Discovered by LuanRT - https://github.com/LuanRT/YouTube.js/pull/624
Diffstat (limited to 'youtube/util.py')
-rw-r--r-- | youtube/util.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube/util.py b/youtube/util.py index 6e501bc..0416fc1 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -698,12 +698,8 @@ INNERTUBE_CLIENTS = { 'osVersion': '14', 'androidSdkVersion': 34, 'platform': 'MOBILE', - 'userAgent': 'com.google.android.youtube/19.12.36 (Linux; U; Android 14; US) gzip' - }, - # https://github.com/yt-dlp/yt-dlp/pull/575#issuecomment-887739287 - #'thirdParty': { - # 'embedUrl': 'https://google.com', # Can be any valid URL - #} + 'userAgent': 'com.google.android.youtube/19.13.36 (Linux; U; Android 14; en_US; Google Pixel 6 Pro) gzip' + } }, 'INNERTUBE_CONTEXT_CLIENT_NAME': 3, 'REQUIRE_JS_PLAYER': False, |