[common] Keep full codec name from m3u8 manifests
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 24 Jan 2016 17:03:46 +0000 (01:03 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 24 Jan 2016 17:03:46 +0000 (01:03 +0800)
See #8293. This is for consistency between YouTube and HLS formats.

youtube_dl/extractor/common.py

index 8da70ae14409e4868c9ab72766c49c2b10454b9d..2f574054d7bb17f6f71745d2b045ee8f8df81f40 100644 (file)
@@ -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')