aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-10-29 15:10:09 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-10-29 15:10:09 +0100
commite54fd4b23b8110779e8caff805d3078dcf042d0b (patch)
treef5da345cdb32e5ada37e70377792dbac228d5b82
parent57dd9a8f2f5885fb3d909c4905adb69b4749491c (diff)
[vevo] Add more format details
-rw-r--r--youtube_dl/extractor/vevo.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index 26ec9fa1b..4d9f2a843 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -50,10 +50,11 @@ class VevoIE(InfoExtractor):
# Already sorted from worst to best quality
for rend in renditions.findall('rendition'):
attr = rend.attrib
- f_url = attr['url']
+ format_note = '%(videoCodec)s@%(videoBitrate)4sK, %(audioCodec)s@%(audioBitrate)3sK' % attr
formats.append({
- 'url': f_url,
- 'ext': determine_ext(f_url),
+ 'url': attr['url'],
+ 'format_id': attr['name'],
+ 'format_note': format_note,
'height': int(attr['frameheight']),
'width': int(attr['frameWidth']),
})
@@ -71,7 +72,4 @@ class VevoIE(InfoExtractor):
'duration': video_info['duration'],
}
- # TODO: Remove when #980 has been merged
- info.update(formats[-1])
-
return info