mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-27 02:09:06 +00:00
[common] Keep full codec name from m3u8 manifests
See #8293. This is for consistency between YouTube and HLS formats.
This commit is contained in:
parent
94278f7202
commit
77f785076f
1 changed files with 2 additions and 2 deletions
|
@ -1058,9 +1058,9 @@ class InfoExtractor(object):
|
||||||
# TODO: looks like video codec is not always necessarily goes first
|
# TODO: looks like video codec is not always necessarily goes first
|
||||||
va_codecs = codecs.split(',')
|
va_codecs = codecs.split(',')
|
||||||
if va_codecs[0]:
|
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]:
|
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')
|
resolution = last_info.get('RESOLUTION')
|
||||||
if resolution:
|
if resolution:
|
||||||
width_str, height_str = resolution.split('x')
|
width_str, height_str = resolution.split('x')
|
||||||
|
|
Loading…
Reference in a new issue