1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 08:58:30 +00:00

[ie/youtube] Improve player context payloads (#13539)

Closes #12563
Authored by: bashonly
This commit is contained in:
bashonly 2025-06-25 12:10:00 -05:00 committed by GitHub
parent 73bf102116
commit ff6f94041a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2820,6 +2820,10 @@ def _generate_player_context(cls, sts=None):
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(),