[vine] Fix extraction (Closes #9970)

pull/8/head
Sergey M․ 9 years ago
parent 9f4576a7eb
commit 564dc3c6e8
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

@ -90,10 +90,12 @@ class VineIE(InfoExtractor):
data = self._parse_json( data = self._parse_json(
self._search_regex( 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'), webpage, 'vine data'),
video_id) video_id)
data = data[list(data.keys())[0]]
formats = [{ formats = [{
'format_id': '%(format)s-%(rate)s' % f, 'format_id': '%(format)s-%(rate)s' % f,
'vcodec': f.get('format'), 'vcodec': f.get('format'),

Loading…
Cancel
Save