mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[vevo] Add more format details
This commit is contained in:
parent
57dd9a8f2f
commit
e54fd4b23b
1 changed files with 4 additions and 6 deletions
|
@ -50,10 +50,11 @@ def _real_extract(self, url):
|
||||||
# Already sorted from worst to best quality
|
# Already sorted from worst to best quality
|
||||||
for rend in renditions.findall('rendition'):
|
for rend in renditions.findall('rendition'):
|
||||||
attr = rend.attrib
|
attr = rend.attrib
|
||||||
f_url = attr['url']
|
format_note = '%(videoCodec)s@%(videoBitrate)4sK, %(audioCodec)s@%(audioBitrate)3sK' % attr
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': f_url,
|
'url': attr['url'],
|
||||||
'ext': determine_ext(f_url),
|
'format_id': attr['name'],
|
||||||
|
'format_note': format_note,
|
||||||
'height': int(attr['frameheight']),
|
'height': int(attr['frameheight']),
|
||||||
'width': int(attr['frameWidth']),
|
'width': int(attr['frameWidth']),
|
||||||
})
|
})
|
||||||
|
@ -71,7 +72,4 @@ def _real_extract(self, url):
|
||||||
'duration': video_info['duration'],
|
'duration': video_info['duration'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Remove when #980 has been merged
|
|
||||||
info.update(formats[-1])
|
|
||||||
|
|
||||||
return info
|
return info
|
||||||
|
|
Loading…
Reference in a new issue