mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[youtube] Fix acodec and vcodec order
In RFC6381, there's no rule stating that the first part of codecs should be video and the second part should be audio, while it seems the case for data reported by YouTube.
This commit is contained in:
parent
bc0550c262
commit
cc28492d31
@ -1487,7 +1487,7 @@ def _map_to_format_list(urlmap):
|
|||||||
if codecs:
|
if codecs:
|
||||||
codecs = codecs.split(',')
|
codecs = codecs.split(',')
|
||||||
if len(codecs) == 2:
|
if len(codecs) == 2:
|
||||||
acodec, vcodec = codecs[0], codecs[1]
|
acodec, vcodec = codecs[1], codecs[0]
|
||||||
else:
|
else:
|
||||||
acodec, vcodec = (codecs[0], 'none') if kind == 'audio' else ('none', codecs[0])
|
acodec, vcodec = (codecs[0], 'none') if kind == 'audio' else ('none', codecs[0])
|
||||||
dct.update({
|
dct.update({
|
||||||
|
Loading…
Reference in New Issue
Block a user