From: Sergey M․ Date: Fri, 1 Jul 2016 18:24:57 +0000 (+0700) Subject: [vine] Fix extraction (Closes #9970) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=564dc3c6e8ad235160cfea01e41fc01fefc39be8;p=youtube-dl [vine] Fix extraction (Closes #9970) --- diff --git a/youtube_dl/extractor/vine.py b/youtube_dl/extractor/vine.py index 5b801849c..5a2c53b36 100644 --- a/youtube_dl/extractor/vine.py +++ b/youtube_dl/extractor/vine.py @@ -90,9 +90,11 @@ class VineIE(InfoExtractor): data = self._parse_json( self._search_regex( - r'window\.POST_DATA\s*=\s*{\s*%s\s*:\s*({.+?})\s*};\s*' % video_id, + r'window\.POST_DATA\s*=\s*({.+?});\s*', webpage, 'vine data'), video_id) + + data = data[list(data.keys())[0]] formats = [{ 'format_id': '%(format)s-%(rate)s' % f,