mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-17 14:33:54 +00:00
[ie/youtube] Use Safari UA for web_embedded client (#17684)
Authored by: gamer191
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user