diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-01-25 01:03:46 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-01-25 01:03:46 +0800 |
commit | 77f785076f9a2fcfc35de49c8e612716bbb37f6c (patch) | |
tree | ac3cc4caddb4b52d6b61abce8e2ef862ba893cf9 /youtube_dl | |
parent | 94278f720272c5ad2cd5900f59f8e71f31d46633 (diff) |
[common] Keep full codec name from m3u8 manifests
See #8293. This is for consistency between YouTube and HLS formats.
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 8da70ae14..2f574054d 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1058,9 +1058,9 @@ class InfoExtractor(object): # TODO: looks like video codec is not always necessarily goes first va_codecs = codecs.split(',') if va_codecs[0]: - f['vcodec'] = va_codecs[0].partition('.')[0] + f['vcodec'] = va_codecs[0] if len(va_codecs) > 1 and va_codecs[1]: - f['acodec'] = va_codecs[1].partition('.')[0] + f['acodec'] = va_codecs[1] resolution = last_info.get('RESOLUTION') if resolution: width_str, height_str = resolution.split('x') |