Update yt_dlp/extractor/common.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
sepro 2024-09-10 19:56:30 +02:00 committed by GitHub
parent 88a5fd0fbf
commit c4745c10d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3489,7 +3489,7 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,
continue
urls.add(source_url)
source_type = source.get('type') or ''
ext = determine_ext(source_url) or mimetype2ext(source_type)
ext = determine_ext(source_url, default_ext=mimetype2ext(source_type))
if source_type == 'hls' or ext == 'm3u8' or 'format=m3u8-aapl' in source_url:
formats.extend(self._extract_m3u8_formats(
source_url, video_id, 'mp4', entry_protocol='m3u8_native',