diff options
author | dirkf <fieldhouse@gmx.net> | 2025-09-28 06:01:02 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2025-09-29 02:15:05 +0100 |
commit | 7f7b3881aacc5f68a43a14e0588087d986c59b14 (patch) | |
tree | beef92a148ad167fb40122918068e53933a0d1bd | |
parent | 0c41b03114df2591a9c0c087a4e1f9d521cb99fc (diff) |
[YouTube] Handle Web Safari formats
From yt-dlp/yt-dlp#14168, thx bashonly.
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 81801f5bd..a6f60f9bf 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -2540,6 +2540,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 not is_live: + f['source_preference'] -= 1 + if itag in ('616', '235'): f['format_note'] = join_nonempty(f.get('format_note'), 'Premium', delim=' ') f['source_preference'] += 100 |