1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[vine] Fix extraction (Closes #9970)

This commit is contained in:
Sergey M․ 2016-07-02 01:24:57 +07:00
parent 9f4576a7eb
commit 564dc3c6e8
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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,