]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[nova:embed] Fix extraction (closes #23672)
authorJan 'Yenda' Trmal <jtrmal@gmail.com>
Fri, 10 Jan 2020 09:14:18 +0000 (10:14 +0100)
committerSergey M․ <dstftw@gmail.com>
Fri, 14 Feb 2020 19:00:52 +0000 (02:00 +0700)
youtube_dl/extractor/nova.py

index 901f44b54f40c2c02e120c636a80b0b5bfb4ea2e..aefd8eab150fe81b4a3febcdaf0c0c94d0529b23 100644 (file)
@@ -43,6 +43,13 @@ class NovaEmbedIE(InfoExtractor):
 
         formats = []
         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):
                 continue
             for format_url in format_list: