diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-07-02 01:24:57 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-07-02 01:24:57 +0700 |
commit | 564dc3c6e8ad235160cfea01e41fc01fefc39be8 (patch) | |
tree | 2c171ce39242e24d6a98743ecce9843b29b2e4c4 /youtube_dl/extractor | |
parent | 9f4576a7ebbc4af4971796325f0799f894daaa1c (diff) |
[vine] Fix extraction (Closes #9970)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/vine.py | 4 |
1 files changed, 3 insertions, 1 deletions
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*</script>' % video_id, + r'window\.POST_DATA\s*=\s*({.+?});\s*</script>', webpage, 'vine data'), video_id) + + data = data[list(data.keys())[0]] formats = [{ 'format_id': '%(format)s-%(rate)s' % f, |