From: Sergey M․ Date: Wed, 21 Oct 2015 14:35:22 +0000 (+0600) Subject: [vine] Use _search_regex for JSON data (Closes #7254, closes #7255) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=cc449417c4b3835c31f89e47a5e08e0f0c42ac5a;p=youtube-dl [vine] Use _search_regex for JSON data (Closes #7254, closes #7255) --- diff --git a/youtube_dl/extractor/vine.py b/youtube_dl/extractor/vine.py index be72f3147..cb2a4b0b5 100644 --- a/youtube_dl/extractor/vine.py +++ b/youtube_dl/extractor/vine.py @@ -85,8 +85,8 @@ class VineIE(InfoExtractor): webpage = self._download_webpage('https://vine.co/v/' + video_id, video_id) data = self._parse_json( - self._html_search_regex( - r'window\.POST_DATA = { %s: ({.+?}) };\s*' % video_id, + self._search_regex( + r'window\.POST_DATA\s*=\s*{\s*%s\s*:\s*({.+?})\s*};\s*' % video_id, webpage, 'vine data'), video_id)