diff options
Diffstat (limited to 'youtube_dl/extractor')
| -rw-r--r-- | youtube_dl/extractor/common.py | 4 | ||||
| -rw-r--r-- | youtube_dl/extractor/vevo.py | 7 | 
2 files changed, 8 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 45dd01789..f787d0a3c 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -71,6 +71,10 @@ class InfoExtractor(object):                                  ("3D" or "DASH video")                      * width     Width of the video, if known                      * height    Height of the video, if known +                    * abr       Average audio bitrate in KBit/s +                    * acodec    Name of the audio codec in use +                    * vbr       Average video bitrate in KBit/s +                    * vcodec    Name of the video codec in use      webpage_url:    The url to the video webpage, if given to youtube-dl it                      should allow to get the same result again. (It will be set                      by YoutubeDL if it's missing) diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py index 3f6020f74..4378b1780 100644 --- a/youtube_dl/extractor/vevo.py +++ b/youtube_dl/extractor/vevo.py @@ -78,12 +78,13 @@ class VevoIE(InfoExtractor):                  continue              format_url = self._SMIL_BASE_URL + m.group('path') -            format_note = ('%(vcodec)s@%(vbr)4sk, %(acodec)s@%(abr)3sk' % -                           m.groupdict())              formats.append({                  'url': format_url,                  'format_id': u'SMIL_' + m.group('cbr'), -                'format_note': format_note, +                'vcodec': m.group('vcodec'), +                'acodec': m.group('acodec'), +                'vbr': int(m.group('vbr')), +                'abr': int(m.group('abr')),                  'ext': m.group('ext'),                  'width': int(m.group('width')),                  'height': int(m.group('height')),  | 
