1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-16 22:25:40 +07:00

[ie/youtube] Deprioritize web_safari m3u8 formats (#14168)

Authored by: bashonly
This commit is contained in:
bashonly
2025-08-27 17:31:51 -05:00
committed by GitHub
parent 1ddbd033f0
commit 5c7ad68ff1

View File

@@ -3611,6 +3611,10 @@ def process_manifest_format(f, proto, client_name, itag, missing_pot):
if f.get('source_preference') is None:
f['source_preference'] = -1
# 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':
f['source_preference'] -= 1
if missing_pot:
f['format_note'] = join_nonempty(f.get('format_note'), 'MISSING POT', delim=' ')
f['source_preference'] -= 20