mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-01 22:11:00 +02:00
[ie/youtube] Fix premium formats extraction (#13586)
Fix ff6f94041aeee19c5559e1c1cd693960a1c1dd14 Closes #13545 Authored by: bashonly
This commit is contained in:
parent
e9f157669e
commit
2ba5391cd6
@ -63,6 +63,7 @@ INNERTUBE_CLIENTS = {
|
|||||||
'INNERTUBE_CONTEXT_CLIENT_NAME': 1,
|
'INNERTUBE_CONTEXT_CLIENT_NAME': 1,
|
||||||
'PO_TOKEN_REQUIRED_CONTEXTS': [_PoTokenContext.GVS],
|
'PO_TOKEN_REQUIRED_CONTEXTS': [_PoTokenContext.GVS],
|
||||||
'SUPPORTS_COOKIES': True,
|
'SUPPORTS_COOKIES': True,
|
||||||
|
'PLAYER_PARAMS': '8AEB',
|
||||||
},
|
},
|
||||||
'web_embedded': {
|
'web_embedded': {
|
||||||
'INNERTUBE_CONTEXT': {
|
'INNERTUBE_CONTEXT': {
|
||||||
@ -174,6 +175,7 @@ INNERTUBE_CLIENTS = {
|
|||||||
},
|
},
|
||||||
'INNERTUBE_CONTEXT_CLIENT_NAME': 7,
|
'INNERTUBE_CONTEXT_CLIENT_NAME': 7,
|
||||||
'SUPPORTS_COOKIES': True,
|
'SUPPORTS_COOKIES': True,
|
||||||
|
'PLAYER_PARAMS': '8AEB',
|
||||||
},
|
},
|
||||||
'tv_simply': {
|
'tv_simply': {
|
||||||
'INNERTUBE_CONTEXT': {
|
'INNERTUBE_CONTEXT': {
|
||||||
|
@ -2820,10 +2820,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
context['signatureTimestamp'] = sts
|
context['signatureTimestamp'] = sts
|
||||||
return {
|
return {
|
||||||
'playbackContext': {
|
'playbackContext': {
|
||||||
'adPlaybackContext': {
|
|
||||||
'pyv': True,
|
|
||||||
'adType': 'AD_TYPE_INSTREAM',
|
|
||||||
},
|
|
||||||
'contentPlaybackContext': context,
|
'contentPlaybackContext': context,
|
||||||
},
|
},
|
||||||
**cls._get_checkok_params(),
|
**cls._get_checkok_params(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user