mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-12 13:28:30 +00:00
[ie/youtube] Deprioritize web_safari
m3u8 formats (#14168)
Authored by: bashonly
This commit is contained in:
parent
1ddbd033f0
commit
5c7ad68ff1
@ -3611,6 +3611,10 @@ def process_manifest_format(f, proto, client_name, itag, missing_pot):
|
|||||||
if f.get('source_preference') is None:
|
if f.get('source_preference') is None:
|
||||||
f['source_preference'] = -1
|
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:
|
if missing_pot:
|
||||||
f['format_note'] = join_nonempty(f.get('format_note'), 'MISSING POT', delim=' ')
|
f['format_note'] = join_nonempty(f.get('format_note'), 'MISSING POT', delim=' ')
|
||||||
f['source_preference'] -= 20
|
f['source_preference'] -= 20
|
||||||
|
Loading…
Reference in New Issue
Block a user