projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf3960
)
[vine] Fix formats extraction (Closes #5239)
author
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 19 Mar 2015 23:50:36 +0000
(
01:50
+0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 19 Mar 2015 23:50:36 +0000
(
01:50
+0200)
youtube_dl/extractor/vine.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vine.py
b/youtube_dl/extractor/vine.py
index 0b58fe0fe0b5188e9c9865e56ce064e94dbc45e5..c3187cfeb7c7f04dd040ca4cb3e89f0653ccbd03 100644
(file)
--- a/
youtube_dl/extractor/vine.py
+++ b/
youtube_dl/extractor/vine.py
@@
-33,14
+33,13
@@
class VineIE(InfoExtractor):
r'window\.POST_DATA = { %s: ({.+?}) }' % video_id, webpage, 'vine data'))
formats = [{
- 'url': data['videoLowURL'],
- 'ext': 'mp4',
- 'format_id': 'low',
- }, {
- 'url': data['videoUrl'],
- 'ext': 'mp4',
- 'format_id': 'standard',
- }]
+ 'format_id': '%(format)s-%(rate)s' % f,
+ 'vcodec': f['format'],
+ 'quality': f['rate'],
+ 'url': f['videoUrl'],
+ } for f in data['videoUrls'] if f.get('rate')]
+
+ self._sort_formats(formats)
return {
'id': video_id,