1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-31 12:32:27 +01:00

replace desktop with 8k device specification, allowing more quality formats

This commit is contained in:
slipinthedove 2025-01-15 18:27:10 -03:00
parent 135cc6601c
commit b69fa6a856

View file

@ -109,14 +109,13 @@ class GloboIE(InfoExtractor):
f'Downloading resource info for {video_id}',
headers={'Content-Type': 'application/json'},
data=json.dumps({
'player_type': 'desktop',
'player_type': 'mirakulo_8k_hdr',
'video_id': video_id,
'quality': 'max',
'content_protection': 'widevine',
'vsid': f'{uuid.uuid4()}',
'consumption': 'streaming',
'capabilities': {'low_latency': True},
'metadata': {'name': 'web', 'device': {'type': 'desktop', 'os': {}}},
'tz': '-03:00',
'Authorization': try_get(self._get_cookies('https://globo.com'),
lambda x: f'Bearer {x["GLBID"].value}') or '',