Skip to content

Commit

Permalink
Update android client payload params
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Apr 1, 2024
1 parent 49df1d5 commit b3b9918
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions resources/lib/youtube_plugin/youtube/client/request_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@


class YouTubeRequestClient(BaseRequestsClass):
_ANDROID_PARAMS = 'CgIIAdgDAQ==',
# yt-dlp has chosen the following value, but this results in the android
# player response not including adaptive formats
# _ANDROID_PARAMS = 'CgIIAQ==',

CLIENTS = {
# 4k no VP9 HDR
# Limited subtitle availability
'android_testsuite': {
'_id': 30,
'_query_subtitles': True,
'json': {
'params': '2AMBCgIQBg',
'params': _ANDROID_PARAMS,
'context': {
'client': {
'clientName': 'ANDROID_TESTSUITE',
Expand Down Expand Up @@ -51,7 +56,10 @@ class YouTubeRequestClient(BaseRequestsClass):
'_id': 3,
'_query_subtitles': True,
'json': {
'params': '2AMBCgIQBg',
'params': _ANDROID_PARAMS,
# yt-dlp has chosen the following value, but this results in the
# player response not including adaptive formats
# 'params': 'CgIIAQ==',
'context': {
'client': {
'clientName': 'ANDROID',
Expand Down Expand Up @@ -82,7 +90,7 @@ class YouTubeRequestClient(BaseRequestsClass):
'_id': 55,
'_query_subtitles': True,
'json': {
'params': '2AMBCgIQBg',
'params': _ANDROID_PARAMS,
'context': {
'client': {
'clientName': 'ANDROID_EMBEDDED_PLAYER',
Expand Down Expand Up @@ -118,7 +126,7 @@ class YouTubeRequestClient(BaseRequestsClass):
'_id': 29,
'_query_subtitles': True,
'json': {
'params': '2AMBCgIQBg',
'params': _ANDROID_PARAMS,
'context': {
'client': {
'clientName': 'ANDROID_UNPLUGGED',
Expand Down

0 comments on commit b3b9918

Please sign in to comment.