]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[huajiao] Improve feed regex
authorSergey M․ <dstftw@gmail.com>
Sat, 15 Oct 2016 20:02:41 +0000 (03:02 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 15 Oct 2016 20:02:41 +0000 (03:02 +0700)
youtube_dl/extractor/huajiao.py

index c17cbb624a29778cb6c312265691a0f124feaff9..cec0df09a1e78dcff6d2ed4118200e96a55b0050 100644 (file)
@@ -33,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(