[natgeo] extract m3u8 formats(closes #10959)
[youtube-dl] / youtube_dl / extractor / huajiao.py
index 005b8068f1ffbab1a7c1f533e815a5808669ccb9..cec0df09a1e78dcff6d2ed4118200e96a55b0050 100644 (file)
@@ -1,8 +1,11 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-from ..utils import parse_duration, parse_iso8601
 from .common import InfoExtractor
+from ..utils import (
+    parse_duration,
+    parse_iso8601,
+)
 
 
 class HuajiaoIE(InfoExtractor):
@@ -30,7 +33,7 @@ class HuajiaoIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
 
         feed_json = self._search_regex(
-            r'var\s*feed\s*=\s*({.*})', webpage, 'feed json str')
+            r'var\s+feed\s*=\s*({.+})', webpage, 'feed json')
         feed = self._parse_json(feed_json, video_id)
 
         description = self._html_search_meta(