From: Yen Chi Hsuan Date: Wed, 13 Jan 2016 09:05:38 +0000 (+0800) Subject: [youtube] Fix acodec and vcodec order X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=cc28492d31556b55bbd8fc574bf5d890305b22d2;p=youtube-dl [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. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 897641e42..e4f227f19 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1487,7 +1487,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): if codecs: codecs = codecs.split(',') if len(codecs) == 2: - acodec, vcodec = codecs[0], codecs[1] + acodec, vcodec = codecs[1], codecs[0] else: acodec, vcodec = (codecs[0], 'none') if kind == 'audio' else ('none', codecs[0]) dct.update({