mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 14:55:02 +01:00
[ie/youtube] Deprioritize web_safari m3u8 formats (#14168)
Authored by: bashonly
This commit is contained in:
parent
1ddbd033f0
commit
5c7ad68ff1
1 changed files with 4 additions and 0 deletions
|
|
@ -3611,6 +3611,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue