mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/common] Extract SMIL formats from jwplayer
This commit is contained in:
parent
a309684285
commit
b51dc9db0e
1 changed files with 3 additions and 0 deletions
|
@ -2247,6 +2247,9 @@ def _parse_jwplayer_formats(self, jwplayer_sources_data, video_id=None,
|
||||||
elif ext == 'mpd':
|
elif ext == 'mpd':
|
||||||
formats.extend(self._extract_mpd_formats(
|
formats.extend(self._extract_mpd_formats(
|
||||||
source_url, video_id, mpd_id=mpd_id, fatal=False))
|
source_url, video_id, mpd_id=mpd_id, fatal=False))
|
||||||
|
elif ext == 'smil':
|
||||||
|
formats.extend(self._extract_smil_formats(
|
||||||
|
source_url, video_id, fatal=False))
|
||||||
# https://github.com/jwplayer/jwplayer/blob/master/src/js/providers/default.js#L67
|
# https://github.com/jwplayer/jwplayer/blob/master/src/js/providers/default.js#L67
|
||||||
elif source_type.startswith('audio') or ext in (
|
elif source_type.startswith('audio') or ext in (
|
||||||
'oga', 'aac', 'mp3', 'mpeg', 'vorbis'):
|
'oga', 'aac', 'mp3', 'mpeg', 'vorbis'):
|
||||||
|
|
Loading…
Reference in a new issue