]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vine.py
Tidy up cleanup rule and keep lintian happy.
[youtubedl] / youtube_dl / extractor / vine.py
index 5b801849cae1c26cd40049e625c65715c7e58010..0183f052a599f411a48053360ee41670e758f7af 100644 (file)
@@ -90,10 +90,12 @@ class VineIE(InfoExtractor):
 
         data = self._parse_json(
             self._search_regex(
 
         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)
 
                 webpage, 'vine data'),
             video_id)
 
+        data = data[list(data.keys())[0]]
+
         formats = [{
             'format_id': '%(format)s-%(rate)s' % f,
             'vcodec': f.get('format'),
         formats = [{
             'format_id': '%(format)s-%(rate)s' % f,
             'vcodec': f.get('format'),