projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4576a
)
[vine] Fix extraction (Closes #9970)
author
Sergey M․
<dstftw@gmail.com>
Fri, 1 Jul 2016 18:24:57 +0000
(
01:24
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 1 Jul 2016 18:24:57 +0000
(
01:24
+0700)
youtube_dl/extractor/vine.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vine.py
b/youtube_dl/extractor/vine.py
index 5b801849cae1c26cd40049e625c65715c7e58010..5a2c53b3618327525943eb9627026269894d0ecb 100644
(file)
--- 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,