From c0b1e88895394cd627898466de8ec42a5c723358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 16 Oct 2016 03:02:41 +0700 Subject: [PATCH] [huajiao] Improve feed regex --- youtube_dl/extractor/huajiao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/huajiao.py b/youtube_dl/extractor/huajiao.py index c17cbb624..cec0df09a 100644 --- a/youtube_dl/extractor/huajiao.py +++ b/youtube_dl/extractor/huajiao.py @@ -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(