]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vine] Fix extraction (Closes #9970)
authorSergey M․ <dstftw@gmail.com>
Fri, 1 Jul 2016 18:24:57 +0000 (01:24 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 1 Jul 2016 18:24:57 +0000 (01:24 +0700)
youtube_dl/extractor/vine.py

index 5b801849cae1c26cd40049e625c65715c7e58010..5a2c53b3618327525943eb9627026269894d0ecb 100644 (file)
@@ -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,