]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[nova:embed] Fix extraction (closes #18222)
authorSergey M․ <dstftw@gmail.com>
Sat, 17 Nov 2018 18:07:54 +0000 (01:07 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 17 Nov 2018 18:11:10 +0000 (01:11 +0700)
youtube_dl/extractor/nova.py

index 80186ec50cef0e580e1e07104006f8e3f89fa799..901f44b54f40c2c02e120c636a80b0b5bfb4ea2e 100644 (file)
@@ -35,7 +35,7 @@ class NovaEmbedIE(InfoExtractor):
 
         bitrates = self._parse_json(
             self._search_regex(
-                r'(?s)bitrates\s*=\s*({.+?})\s*;', webpage, 'formats'),
+                r'(?s)(?:src|bitrates)\s*=\s*({.+?})\s*;', webpage, 'formats'),
             video_id, transform_source=js_to_json)
 
         QUALITIES = ('lq', 'mq', 'hq', 'hd')