[vevo] Add more format details
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 29 Oct 2013 14:10:09 +0000 (15:10 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 29 Oct 2013 14:10:09 +0000 (15:10 +0100)
youtube_dl/extractor/vevo.py

index 26ec9fa1b108ba8dab9cf883885bd7d72823adef..4d9f2a84318b3526dc95f3eba9e20991104b5365 100644 (file)
@@ -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