1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[nova:embed] Fix extraction (closes #23672)

This commit is contained in:
Jan 'Yenda' Trmal 2020-01-10 10:14:18 +01:00 committed by Sergey M․
parent d6aa1db7ed
commit 8cd809fb3d
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -43,6 +43,13 @@ class NovaEmbedIE(InfoExtractor):
formats = [] formats = []
for format_id, format_list in bitrates.items(): for format_id, format_list in bitrates.items():
if format_id == 'hls':
m3u8_url = url_or_none(format_list)
if not m3u8_url:
continue
formats.extend(self._extract_m3u8_formats(
m3u8_url, video_id, ext='mp4', m3u8_id='hls', fatal=False))
if not isinstance(format_list, list): if not isinstance(format_list, list):
continue continue
for format_url in format_list: for format_url in format_list: