From: Sergey M․ Date: Sat, 15 Oct 2016 20:02:41 +0000 (+0700) Subject: [huajiao] Improve feed regex X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=c0b1e88895394cd627898466de8ec42a5c723358;p=youtube-dl.git [huajiao] Improve feed regex --- 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(