[ie/youtube] Use Safari UA for web_embedded client (#17684)

Authored by: gamer191
This commit is contained in:
gamer191
2026-09-16 07:48:51 +00:00
committed by GitHub
parent bbc809a116
commit c7fb478d21
2 changed files with 2 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ INNERTUBE_CLIENTS = {
'client': { 'client': {
'clientName': 'WEB_EMBEDDED_PLAYER', 'clientName': 'WEB_EMBEDDED_PLAYER',
'clientVersion': '2.20260708.00.00', 'clientVersion': '2.20260708.00.00',
'userAgent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15,gzip(gfe)',
}, },
}, },
'INNERTUBE_CONTEXT_CLIENT_NAME': 56, 'INNERTUBE_CONTEXT_CLIENT_NAME': 56,

View File

@@ -3640,7 +3640,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
f['source_preference'] = -1 f['source_preference'] = -1
# Deprioritize since its pre-merged m3u8 formats may have lower quality audio streams # Deprioritize since its pre-merged m3u8 formats may have lower quality audio streams
if client_name == 'web_safari' and proto == 'hls' and live_status != 'is_live': if client_name in ('web_safari', 'web_embedded') and proto == 'hls' and live_status != 'is_live':
f['source_preference'] -= 1 f['source_preference'] -= 1
if missing_pot: if missing_pot: