Skip to content

Commit

Permalink
[core] Fix jwplayer format parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Oct 7, 2024
1 parent fa7fdb2 commit 10f3808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,8 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,
continue
urls.add(source_url)
source_type = source.get('type') or ''
ext = mimetype2ext(source_type) or determine_ext(source_url)
# https://github.com/yt-dlp/yt-dlp/pull/10956
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',
Expand Down

0 comments on commit 10f3808

Please sign in to comment.