mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[vine] Fix formats extraction (Closes #5239)
This commit is contained in:
parent
ccf3960eec
commit
2684871bc1
|
@ -33,14 +33,13 @@ class VineIE(InfoExtractor):
|
||||||
r'window\.POST_DATA = { %s: ({.+?}) }' % video_id, webpage, 'vine data'))
|
r'window\.POST_DATA = { %s: ({.+?}) }' % video_id, webpage, 'vine data'))
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'url': data['videoLowURL'],
|
'format_id': '%(format)s-%(rate)s' % f,
|
||||||
'ext': 'mp4',
|
'vcodec': f['format'],
|
||||||
'format_id': 'low',
|
'quality': f['rate'],
|
||||||
}, {
|
'url': f['videoUrl'],
|
||||||
'url': data['videoUrl'],
|
} for f in data['videoUrls'] if f.get('rate')]
|
||||||
'ext': 'mp4',
|
|
||||||
'format_id': 'standard',
|
self._sort_formats(formats)
|
||||||
}]
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
|
Loading…
Reference in a new issue